Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Help with Regular Expressions and Perl

by afoken (Chancellor)
on Apr 01, 2010 at 19:29 UTC ( [id://832367]=note: print w/replies, xml ) Need Help??


in reply to Re: Help with Regular Expressions and Perl
in thread Help with Regular Expressions and Perl

Just a small note: Using slurp mode is usually far more efficient than join()ing a temporary array or list.

$variable=do { local $/=undef; <INFILE> };

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found