Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: Out of Memory

by davido (Archbishop)
on Mar 28, 2013 at 17:46 UTC ( #1026008=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Out of Memory
in thread Out of Memory

You're right. :)

This really should be a job for tr///, shouldn't it?

my $string = '5mb of stuff'; my $count = $string =~ tr/\0/\0/;

(I probably just missed seeing that proposed somewhere within the thread.)

Update: Ah, I see it's the first thing you proposed (good job). This is probably a good time for me to walk away from the keyboard for awhile. ;)


Dave


Comment on Re^5: Out of Memory
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2014-09-17 03:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (57 votes), past polls