Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by tye (Sage)
on Jan 11, 2002 at 21:09 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://138052]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-19 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found