Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^7: Perl Script in Windows Works, but not in Unix

by mr_mischief (Monsignor)
on Jun 26, 2015 at 20:07 UTC ( [id://1132226]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Perl Script in Windows Works, but not in Unix
in thread Perl Script in Windows Works, but not in Unix

You shouldn't have \r anywhere in a text file on Linux or Unix. Try dos2unix or, failing that, use:

perl -i~ -pe 'tr/\r//d; print' filename
to get rid of stray carriage returns.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1132226]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found