Erez Schatz <moonb...@gmail.com> wrote on 08/21/2009 02:58:23 PM:

> You can also read on all the special variables in Perl by typing
> 'perldoc perlvar' on your shell, or at
> http://perldoc.perl.org/perlvar.html
> 

Thanks, Erez.  That's exactly what I was looking for.  (told you
it was a noob question)

> 2009/8/21 Erez Schatz <moonb...@gmail.com>:
> > 2009/8/21  <pdfe...@aep.com>:
> >> In *NIX shell scripting, the variable $0 refers to the
> >> zeroth command line parameter,
> >> i.e., the program itself.  I would like to use something like this in 
my
> >> perl scripts.  Is there an
> >> equivalent to this in perl?
> >>
> >
> > (un)surprisingly enough, it's $0.
> >
> 
> -- 
> Erez
> 
> "The government forgets that George Orwell's 1984 was a warning, and
> not a blueprint"
> http://www.nonviolent-conflict.org/ -- http://www.whyweprotest.org/
> 
> -- 
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
> 
> 


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to