Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

(jeffa) 2Re: Matching over multiple lines in a scalar

by jeffa (Bishop)
on Oct 27, 2002 at 23:54 UTC ( #208411=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $info;
    
    ...
    local $/ = undef;
    $info = <DATA>;
    }
    
  2. or download this
    my $info = do {local $/;<DATA>};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (1)
As of 2021-05-08 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (96 votes). Check out past polls.

    Notices?