Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Sorting path like strings

by arkturuz (Curate)
on Jan 05, 2006 at 13:34 UTC ( [id://521200]=note: print w/replies, xml ) Need Help??


in reply to Re: Sorting path like strings
in thread Sorting path like strings

How do you print newlines ("\n") here?

Replies are listed 'Best First'.
Re^3: Sorting path like strings
by BrowserUk (Patriarch) on Jan 05, 2006 at 13:37 UTC

    My perl shell has the -l switch on the shebang line which means amongst other things) that print statements have a newline appended to them automatically. See perlrun for the details.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Hm, I meant in the program.

      And after thinking I found it:

      print for map{ $_->[0] . "\n" } etc.
      I should think a lot more before posting a trivial questions. :-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found