in reply to Re: I'm splitting a scalar and putting the results in an array. Why is the first element empty?
in thread I'm splitting a scalar and putting the results in an array. Why is the first element empty?
would printmy $string = "aa:bb:cc:dd:ee:ff:gg:hh"; my @table = split /:/ , $string; print "@table\n";
aa bb cc dd ee ff gg hh
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: I'm splitting a scalar and putting the results in an array. Why is the first element empty?
by artist (Parson) on Aug 14, 2006 at 14:17 UTC |