Perl Mongers,
Is this a bug in rename? I googled but did not find anything off the top.
$ perl -e 'my @files=("x", "y"); rename(@files);'
Not enough arguments for rename at -e line 1, near "@files)"
Execution of -e aborted due to compilation errors.
But this works fine.
$ perl -e 'my @files=("x", "y"); rename($files[0], $files[1]);'
Mike
mrdvt92
$ perl -v
This is perl, v5.10.0 built for x86_64-linux-thread-multi
Copyright 1987-2007, Larry Wall
_______________________________________________
Houston mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/houston
Website: http://houston.pm.org/