in reply to Interesting issues with split function

Because you defined $delim = " " but then used @ar = split($d, $s);.

use strict would have caught that typo for you.


Examine what is said, not who speaks.
"But you should never overestimate the ingenuity of the sceptics to come up with a counter-argument." -Myles Allen
"Think for yourself!" - Abigail        "Time is a poor substitute for thought"--theorbtwo         "Efficiency is intelligent laziness." -David Dunham
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^2: Interesting issues with split function
by ysth (Canon) on Dec 03, 2004 at 18:12 UTC