Anyone know a way to pass arguments into an actual script? not a subroutine... for example
ex: perl -w script <arguments>
I wanted to create a script to upload a file, where the <arguments> is the filename to upload. Anyone know how?
After I get this, I could just run it in my bash script...
perl -w upload.pl filename1
perl -w upload.pl filename2
perl -w upload.pl filename3
=) Anyway to do this? in C you could do this using the
int main(int argc, char *argv) any equivalent in perl?
ex: perl -w script <arguments>
I wanted to create a script to upload a file, where the <arguments> is the filename to upload. Anyone know how?
After I get this, I could just run it in my bash script...
perl -w upload.pl filename1
perl -w upload.pl filename2
perl -w upload.pl filename3
=) Anyway to do this? in C you could do this using the
int main(int argc, char *argv) any equivalent in perl?