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

Re^2: Remove newline character from start of string

by Roy Johnson (Monsignor)
on May 10, 2010 at 15:29 UTC ( #839243=note: print w/ replies, xml ) Need Help??


in reply to Re: Remove newline character from start of string
in thread Remove newline character from start of string

Or somewhat oddly,

chomp(substr($str, 0, length($/));

Caution: Contents may have been coded under pressure.


Comment on Re^2: Remove newline character from start of string
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2015-07-29 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls