Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Unix \n vs. DOS \n

by vkonovalov (Monk)
on Jul 15, 2000 at 14:34 UTC ( [id://22693]=note: print w/replies, xml ) Need Help??


in reply to Unix \n vs. DOS \n

You probably forgot to use "binmode" built-in function, which makes sence for text-mode or binary-mode.

Otherwise, if you're inside perl script, then perl makes UNIX-like line endings, for example in HERE-IN strings and inside any strings:

$a=<<"EOS"; abcd efgh EOS
and
$a="abcd efgh ";
and
$a="abcd\nefgh\n";
are the same.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found