in reply to
Re: perl substitution difficulty
in thread
perl substitution difficulty
It's " " that triggers the magic behavior, as in
split(" ", $str)
. Your code,
split(/ /, $str)
, is just a split on a single space.
Comment on
Re^2: perl substitution difficulty
Select
or
Download
Code
Replies are listed 'Best First'.
Re^3: perl substitution difficulty
by
svenXY
(Deacon)
on Oct 15, 2007 at 12:30 UTC
gotcha!, thanks ++
somni
[reply]
In Section
Seekers of Perl Wisdom