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>


Reply via email to