I know some information can be entered on the command line, but what about a directory path? For example I would like to have my script (in this case - script.pl) use the directory information contained after the script is called. For example at the prompt type:
perl script.pl c:\Documents and Dettings\All Users
And when return is pressed, "c:\Documents and Settings\All Users" is assigned to a scalar in the script for later use.
Could this be done using GetOpt? or @ARGV?
Any help would be much appreciated
Jonathan
In reply to processing on the command line by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |