Uri Guttman wrote: > > this is illegal: > > perl -e '@a ||= 2' > Can't modify array deref in logical or assignment at -e line 1, at EOF > Execution of -e aborted due to compilation errors. > > while this works: > > perl -e '@a = @a || 2 ; print "@a\n"' > 2 > > the definition of ||= requires the lvalue be readable as an rvalue of > the same type. Just because it *does* doesn't mean it *has to*. The perl interpreter is already so bloody powerful, there's no reason not to make it a little bit more so. :-) -- John Porter "There are people who have fun studying the C++ spec for literally seconds on end, I'm sure..." John Vlissides ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe