abhishes has asked for the wisdom of the Perl Monks concerning the following question:
I have been a active state perl user on windows. There if I type
tele.pl params
on the console, the perl interperter automatically comes into play. also I can run this from anywhere so long as the directory which contains my tele.pl script is in the path.
Now I am on linux (mandarke 9.2, gnome 2.4) and I try to do the same thing (add my script directory to the path)
but I get a slew of errors
/mnt/windows/myapps/perl/hptele.pl: line 1: use: command not found : command not found/perl/hptele.pl: line 1: /mnt/windows/myapps/perl/hptele.pl: line 2: use: command not found : command not found/perl/hptele.pl: line 2: : command not found/perl/hptele.pl: line 3: /mnt/windows/myapps/perl/hptele.pl: line 4: my: command not found : command not found/perl/hptele.pl: line 4: : command not found/perl/hptele.pl: line 5: /mnt/windows/myapps/perl/hptele.pl: line 6: syntax error near unexpected token `defined' 'mnt/windows/myapps/perl/hptele.pl: line 6: `unless (defined($namePattern))
I will grately appriciate any help in this regard.
regards,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: assosiating .pl files with perl on linux
by Corion (Patriarch) on Apr 29, 2004 at 07:19 UTC | |
by edan (Curate) on Apr 29, 2004 at 08:34 UTC | |
by doom (Deacon) on Mar 24, 2009 at 06:54 UTC | |
by Anonymous Monk on Mar 24, 2009 at 07:20 UTC | |
|
Re: assosiating .pl files with perl on linux
by gellyfish (Monsignor) on Apr 29, 2004 at 09:14 UTC | |
|
Re: assosiating .pl files with perl on linux
by z3d (Scribe) on Apr 29, 2004 at 14:18 UTC | |
|
Re: assosiating .pl files with perl on linux
by zentara (Cardinal) on Apr 29, 2004 at 20:16 UTC |