in reply to Re: split, Use of uninitialized value
in thread split, Use of uninitialized value

Too much typing, you could do with a one-liner instead. I ++'ed you anyhow because the idea is good. ;-)
use strict; use Data::Dumper; my $rec = [ undef, 1, '', 2, 0 ]; @$rec = map { defined($_) ? $_ : '' } @$rec; print Dumper($rec); __END__ # ---output --- $VAR1 = [ '', 1, '', 2, '0' ];

Replies are listed 'Best First'.
Re: Re: Re: split, Use of uninitialized value
by Tommy (Chaplain) on Jan 07, 2004 at 22:52 UTC