in reply to Assigning an array to a scalar
I thought shift should return the array element, so why do I need to use $_ = shift ... ?while ($_ = shift @letters) { $word .= $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Assigning an array to a scalar
by ysth (Canon) on Sep 26, 2004 at 06:53 UTC |