Cook,

I run the command what you sent.But still the same problem persists.I cant 
execute the script in linux machine directly by its name, by i can do it on 
windows machine..

-reddy.


----- Original Message ----
From: Owen Cook <[EMAIL PROTECTED]>
To: pradeep reddy <[EMAIL PROTECTED]>
Cc: beginners@perl.org
Sent: Tuesday, 19 December, 2006 4:48:39 PM
Subject: Re: perl script execution issue


On Tue, Dec 19, 2006 at 03:48:49PM +0530, pradeep reddy wrote:
> Yes Ruud, I edited it in windows environment, as a text pad format, then I 
> saved it.
> 
> How can i correct this issue.
> 
> -reddy.


At the prompt, type

#   perl -p -e 's/\r$//' < winfile.txt > unixfile.txt 

so if your script is called foo.pl, it is

#   perl -p -e 's/\r$//' < foo.pl > newfoo.pl




Owen


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

Reply via email to