On Wed, Apr 23, 2008 at 5:37 PM, Sonia Hamilton <[EMAIL PROTECTED]> wrote:
> In my bash scripts I often use this (to change to the directory where
>  the script is):
>
>  cd $(dirname $0)
>
>  Is there an equivalent in perl?

1. Short answer: http://perldoc.perl.org/File/Basename.html, and "$0"
in perl works like in the shell.

2. Longer answer: install the FF search engines for perldoc.perl.org
and CPAN and you'll always be a simple search away from answers to all
perl-related questions you'll ever have.

Cheers,

--Amos
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to