in reply to Re^2: split and uninitialized variables
in thread split and uninitialized variables
but this was the most natural answer to me. The problem, as I saw it, was "sometimes the list returned by split is too short, and I want empty strings to fill missing places at the end," so the most natural answer I saw was to add items to fill it out.my ($x, $y, $z) = split(',', "$_,,");
|
|---|