tsawyer
12/6/2004 8:25:00 PM
James Edward Gray II wrote:
> On Dec 6, 2004, at 1:20 PM, Simon Strandgaard wrote:
>
> > However Perl has a bad split.
> >
> > $size = split(/\n/, "");
> > print "size is $size"; # -> 0
>
> Perl's split() works as you described above. You just need to call
it
> in "list context":
>
> @arr = split /\n/, "";
> # ...
Try
@arr = split /\n/, -1;
Which I think should be defualt behavior.
T.