note
eduardo
Ok... we'd figured that far when [jeffa] got:<code>sub bar {
my $str = "foo";
return scalar reverse $str;
}
print chop bar();
captvanhalen: $ perl foo
Can't modify non-lvalue subroutine call in chop at foo line 6, near ");"
Execution of foo aborted due to compilation errors.
</code>
Now, my question is... that's not very "DWIM" of perl... (at least not to me!) Why does reverse not return an lvalue?
134428
134431