in reply to Re: Re: rename files dynamically
in thread rename files dynamically
In Perl, you need to explicity pull variables off of @_ when passing params in:
sub arg_test1 { my $arg1 = shift; # shift() defaults to @_ my $arg2 = shift; return $arg1; } # Another way sub arg_test2 { my ($arg1, $arg2) = @_; return $arg1; } my $test1 = arg_test1(1, 2); my $test2 = arg_test2(1, 2);
----
Reinvent a rounder wheel.
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: rename files dynamically
by Anonymous Monk on Feb 24, 2003 at 18:11 UTC | |
by pfaut (Priest) on Feb 24, 2003 at 18:20 UTC |