-
Notifications
You must be signed in to change notification settings - Fork 578
undef ($a, $b, $c) doesn't work #4685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From @nwc10Created by @nwc10I was going to stick this on wishlist. Then I RTFM: =item undef Undefines the value of EXPR, which must be an lvalue. Use only on [at which point it implicitly excludes a list]. But why can't I do this: perl -we 'undef ($a, $b, $c)' The error I get is: Too many arguments for undef operator at -e line 1, at end of line A list is an lvalue: perl -lwe '($a, $b, $c) = @INC; print $a; print $b; print $c' so why can't I undef it? If this is a bug, should we fix the docs to say it is known deficiency? Nicholas Clark Perl Info
|
From [Unknown Contact. See original ticket]On Dec 11, Nicholas Clark said:
I would say the elements of a list are potentially lvalues, but a list -- |
From @rgsundef() is a unary operator. That means that C<undef $a, $b> will |
The RT System itself - Status changed from 'stalled' to 'open' |
@rgs - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#8039 (status was 'rejected')
Searchable as RT8039$
The text was updated successfully, but these errors were encountered: