Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
more useful options
 
PerlMonks  

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

by tye (Cardinal)
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 surveying the Monastery: (16)
As of 2014-04-18 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (471 votes), past polls