in reply to Re^2: variation on splitting a string into elements of an array
in thread splitting a sequence using unpack
Good point about using length - again, I think my way is clearer, but I'm not sure whether that's the use of length or the ->. (which you could drop)
By the way, I would have written the first line of your loop as:
But that's only because I don't like using @{$unusedvarref} to auto-vivify.$triplets{$_} = [unpack("x$_ (a3)*", $line)];
-- @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/
|
|---|