Ryan Moszynski wrote:
hi,
Hello,
i'm using a perl script i found
You should be careful with stuff you find lying around.
to change the names of batches of
files. The program works as is but it's giving me a weird warning.
I'm familiar with $_, but not $_[3]. Can someone explain what $_[
to:[EMAIL PROTECTED]
> > Sent: 18 September 2007 15:12
> > To: beginners@perl.org
> > Subject: perl default variable question
> >
> > hi,
> > i'm using a perl script i found to change the names of batches of files.
> > The program works as is but it'
On 9/18/07, Ryan Moszynski <[EMAIL PROTECTED]> wrote:
> i'm using a perl script i found to change the names of batches of
> files. The program works as is but it's giving me a weird warning.
> I'm familiar with $_, but not $_[3]. Can someone explain what $_[3]
> is, and how i can get this script
:-)
$_ is basically the first variable of @_ which is the array that Perl is
currently working on.
So when your script is complaining about something in $_[3] what it is
saying is that the 4th variable (Perl starts counting at 0) in the @_ array
is making the compiler unhappy.
I hope this helps
hi,
i'm using a perl script i found to change the names of batches of
files. The program works as is but it's giving me a weird warning.
I'm familiar with $_, but not $_[3]. Can someone explain what $_[3]
is, and how i can get this script to stop throwning the warning?
Thanks,
Ryan
i found the