Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: How to club different lines of program into one

by akho (Hermit)
on May 26, 2009 at 16:41 UTC ( [id://766253]=note: print w/replies, xml ) Need Help??


in reply to Re: How to club different lines of program into one
in thread How to club different lines of program into one

$text = <IN>; will not work like you want it to if you do not undef $/.

Regexen stop after the first match; you may gain a performance benefit, but not for the reason you cite.

Replies are listed 'Best First'.
Re^3: How to club different lines of program into one
by Marshall (Canon) on May 26, 2009 at 17:50 UTC
    Thanks for the clarifications!

    As far as performance goes, it probably doesn't make any difference. So here we just have another way of doing things.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2026-01-15 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.