Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: FMTYEWTK about split //

by hardburn (Abbot)
on Jan 21, 2004 at 14:47 UTC ( #322901=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: FMTYEWTK about split //
in thread FMTYEWTK about split //

It will cost a lot of memory. Fortunately, $string is rarely large. And if it is large, the regex-iterator solution will probably be slow. You'll probably be better off with a substr solution on large strings.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

: () { :|:& };:

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re^4: FMTYEWTK about split //
by ambrus (Abbot) on Jan 21, 2004 at 14:49 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://322901]
help
Chatterbox?
NodeReaper adjusts the cross hairs

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2017-03-31 01:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (364 votes). Check out past polls.