Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: variable mystery

by CountZero (Bishop)
on Nov 29, 2008 at 08:10 UTC ( [id://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.

CountZero

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-16 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found