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. :-)