Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Unindenting here-docs (Re: My day with Damian Conway)

by tye (Sage)
on Jan 11, 2002 at 21:09 UTC ( #138052=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        print unindent( <<"    END" );
            Usage: $0 [flags] [args]
            Gropples the snarflog.
    ...
                       wide  Minimize alphabet size.
            Do not use on UTF8 files.
        END
    
  2. or download this
    sub unindent { s/^\s*\S//gm }
    
        print unindent( <<"    END" );
    ...
            .           wide  Minimize alphabet size.
            .Do not use on UTF8 files.
        END
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2016-10-01 22:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (9 votes). Check out past polls.