Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: variable mystery

by CountZero (Bishop)
on Nov 29, 2008 at 08:10 UTC ( #726746=note: print w/replies, xml ) Need Help??

in reply to Re: variable mystery
in thread variable mystery

The correct character to use, at leat in the Unix world, is "\n"; for DOS-based systems, "\n\r" is appropriate.
Actually, \n works always and Perl will do "The Right Thing" depending on your OS.


A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^3: variable mystery
by pobocks (Chaplain) on Nov 29, 2008 at 10:37 UTC

    True as long as there's not networking involved... After all, Perl only knows what system it's being served from, not necessarily what system it's serving to.

    for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2022-05-27 21:37 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (98 votes). Check out past polls.