http://qs321.pair.com?node_id=930630


in reply to Convert Shell script to Perl

What you posted is not valid Perl. Running what you think your Perl script is will make Perl tell you so. Please correct your script. Maybe you want to read system, but before that, also do read perlintro and perlsyn.

Perl is not a shell or shell-alike language.

Replies are listed 'Best First'.
Re^2: Convert Shell script to Perl
by akrrs7 (Acolyte) on Oct 10, 2011 at 13:51 UTC
    Hello... I am really new at Perl...as you've surmised. I have read the perlintro document but am still confused on how to set environment variables. Thanks...

      You are confused about so many things that it does not make sense to give you small pointers. You need to take a step back and start learning Perl. See the books section of learn.perl.org, and maybe the Modern Perl book by chromatic, if you're in need of a free book and already know how to program in some other programming language.