Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Removing multiple trailing comment lines from a string

by eyepopslikeamosquito (Archbishop)
on Dec 23, 2016 at 09:38 UTC ( [id://1178423]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      $s =~ s/^[ \t]+//mg;   # remove leading whitespace from each line
      $s =~ s/^\s+//;        # remove leading whitespace
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-28 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found