Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Splitting a string to chunks

by BrowserUk (Patriarch)
on Nov 29, 2006 at 14:33 UTC ( [id://586710]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Splitting a string to chunks
in thread Splitting a string to chunks

Without having run your benchmark, the huge disparity between your solutions and the others make me very suspicious that your code is not producing the same results as the others. Have you checked?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^4: Splitting a string to chunks
by Fengor (Pilgrim) on Nov 29, 2006 at 14:50 UTC
    the fault for the huge disparity seems to be mine. i accidentally wrote $string instead of $str in the source code as i first posted my regex solution and since themage seems to have his solution based on mine he copied the mistake. The huge results are based on $string being uninitialized. i found the mistake as i tried my solution later on my pc and changed the typo. but that was after themage wrote his reply

    --
    "WHAT CAN THE HARVEST HOPE FOR IF NOT THE CARE OF THE REAPER MAN"
    -- Terry Pratchett, "Reaper Man"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-19 10:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found