Its worked for me now.

I run the following command on unix to convert.
perl -i -pe 's/\x0d\x0a/\x0a/g' <name.pl>

Thx all for your support.

Thx Cook,Krishnan,Ruud.

-reddy.


----- Original Message ----
From: H Krishnan <[EMAIL PROTECTED]>
To: pradeep reddy <[EMAIL PROTECTED]>; Dr.Ruud <[EMAIL PROTECTED]>
Cc: beginners@perl.org
Sent: Tuesday, 19 December, 2006 4:05:09 PM
Subject: RE: perl script execution issue


hi Reddy,

If u open the perl script file using "vi" editor, r u seeing "^M" ?

If its the case u can use the dos2unix command and clear that.

U may want to check for the permissions for this particular file.

- krishnan.


-----Original Message-----
From: pradeep reddy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 19, 2006 3:49 PM
To: Dr.Ruud
Cc: beginners@perl.org
Subject: Re: perl script execution issue


Yes Ruud, I edited it in windows environment, as a text pad format, then I
saved it.

How can i correct this issue.

-reddy.


----- Original Message ----
From: Dr.Ruud <[EMAIL PROTECTED]>
To: beginners@perl.org
Sent: Tuesday, 19 December, 2006 3:32:22 PM
Subject: Re: perl script execution issue


pradeep reddy schreef:

> The same perl script runs fine on windows environment. But on
> linux machine its giving this problem.

Did you edit it in a Windows environment? Then a bunch of CRs might have
creeped in your script, corrupting your shebang and more.

--
Affijn, Ruud

"Gewoon is een tijger."


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

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

Reply via email to