in reply to Re^3: Simple Perl file rename
in thread Simple Perl file rename
thank you for your quick reply. I understand what shift does in this script. What I don't understand is how all txt files in the directory end up in @ARGV.
When I copy and paste your code, what I get is:
These are the 2 arguments: ARGV[0] = s/\.txt\.mex// ARGV[1] = *.txt
And this also makes sense to me, because how would the script be able to know which files in the directory match '*.txt'? Doesn't there have to be another process that matches '*.txt' against all files in the directory first?
Arian
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Simple Perl file rename
by toolic (Bishop) on Jul 29, 2008 at 02:05 UTC | |
by clearwater (Initiate) on Jul 29, 2008 at 09:41 UTC | |
|
Re^5: Simple Perl file rename
by Anonymous Monk on Jul 28, 2008 at 21:12 UTC |