Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Fast Replacement

by choroba (Chancellor)
on Jun 14, 2013 at 07:26 UTC ( #1038916=note: print w/replies, xml ) Need Help??


in reply to Fast Replacement

If you are reading $group from a file, you can probably replace the exclamation marks when reading the file already. Something like
{ local $/ = '!'; while (<>) { chomp; print "$_\n"; last if 50_000 <= $.; } } print <>;
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038916]
help
Chatterbox?
and !@monks...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-03-27 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (321 votes). Check out past polls.