You aren't using a hash, but a regular array. What you probably want is in File::Copy.
use File::Copy; my @FILES = ('file1', 'file2'); copy( "/home/wbill/lazarus/$_", '.' ) foreach (@FILES);
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Hashes or arrays in the command line
by hardburn
in thread Hashes or arrays in the command line
by tux242
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |