Re: running perl on linux..

2006-06-30 Thread Brandon
At 12:29 PM 6/30/2006, bruce wrote: >hi... > >i know this list is geared towards windows > >i have a perl script... i can run it with d:perl foo.pl > >i have the 1st line as > !/usr/bin/perl > perl exists in the dir... You will want to use: #!/usr/bin/perl in order to get the shell

Re: running perl on linux..

2006-06-30 Thread Williamawalters
hi bruce --     In a message dated 6/30/2006 3:39:28 P.M. Eastern Standard Time, [EMAIL PROTECTED] writes:   > hi...> > i know this list is geared towards windows> > i have a perl script... i can run it with d:perl foo.pl> > i have the 1st line as> !/usr/bin/perl   shouldn't this be ``#

RE: running perl on linux..

2006-06-30 Thread Bowie Bailey
bruce wrote: > hi... > > i know this list is geared towards windows > > i have a perl script... i can run it with d:perl foo.pl > > i have the 1st line as > !/usr/bin/perl > perl exists in the dir... 1st line should be: #!/usr/bin/perl -- Bowie _

Re: running perl on linux..

2006-06-30 Thread David Stanaway
On Unix, scripts uses a shbang, the first 2 characters of the file must be ASCII #! The path after that is executed. Commonly, you will have: #! /usr/bin/env perl -w But if you know that perl will be in /usr/bin/perl then #! /usr/bin/perl -w will work too. Also, it is important that at least

RE: running perl on linux..

2006-06-30 Thread bruce
thanks all... #&^&[EMAIL PROTECTED] fingers.. never type what you tell them to!! -Original Message- From: Thurn, Martin [mailto:[EMAIL PROTECTED] Sent: Friday, June 30, 2006 12:57 PM To: [EMAIL PROTECTED] Subject: RE: running perl on linux.. The shebang line has to start wit

RE: running perl on linux..

2006-06-30 Thread Jeff Kiser
| !/usr/bin/perl I'm assuming this is a typo but it should be #!/usr/bin/perl My bet is you have a space,newline,etc. something before #!. The #! perl directive should be the very first thing in your script. Also, if you composed the script on Windows and copied it to a Linux machine, you may

running perl on linux..

2006-06-30 Thread bruce
hi... i know this list is geared towards windows i have a perl script... i can run it with d:perl foo.pl i have the 1st line as !/usr/bin/perl perl exists in the dir... i've changed the mode to be x --> chmod +x foo.pl when i try to directly run using ./foo.pl .foo.pl etc.. i get err