Yes, you are right and It works both ways..

-Reddy.


----- Original Message ----
From: Chad Perrin <[EMAIL PROTECTED]>
To: beginners@perl.org
Sent: Wednesday, 20 December, 2006 12:37:00 AM
Subject: Re: perl script execution issue


On Tue, Dec 19, 2006 at 10:18:39PM +1100, Owen Cook wrote:
> 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

I usually just use the dos2unix utility for that.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
"It's just incredible that a trillion-synapse computer could actually
spend Saturday afternoon watching a football game." - Marvin Minsky

-- 
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