I thought shift should return the array element, so why do I need to use $_ = shift ... ?while ($_ = shift @letters) { $word .= $_; }
In reply to Re: Assigning an array to a scalar
by hostyle
in thread Assigning an array to a scalar
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |