in reply to Re^2: Assign multiple scalars the same value
in thread Assign multiple scalars the same value
Yep, it does. Note the difference between these, though:
$,= " "; $\ = "\n"; print( map { int rand 10 } 0 .. 6 ); print( ( int rand 10 ) x 7 );
The x operator only evaluates the list expression once. So you can't always substitute one for the other.
Makeshifts last the longest.
|
|---|