We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
perldata says
Since you can assign to a list of variables, you can also assign to an array or hash slice ... @colors{'red','blue','green'} = (0xff0000, 0x0000ff, 0x00ff00); The previous assignments are exactly equivalent to ... ($colors{'red'}, $colors{'blue'}, $colors{'green'}) = (0xff0000, 0x0000ff, 0x00ff00);
Since you can assign to a list of variables, you can also assign to an array or hash slice ...
@colors{'red','blue','green'} = (0xff0000, 0x0000ff, 0x00ff00);
The previous assignments are exactly equivalent to ...
($colors{'red'}, $colors{'blue'}, $colors{'green'}) = (0xff0000, 0x0000ff, 0x00ff00);
OK, but it needs to mention more than just one depth,
@{$colors{favorites}}{ 'red', 'blue', 'green' } #OK
Else users will extend the analogy presented, and assume
@colors{favorites}{ 'red', 'blue', 'green' } #syntax error
will work !
Also mention there is no way to use a consistent syntax for first vs. more layers.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
perldata says
OK, but it needs to mention more than just one depth,
Else users will extend the analogy presented, and assume
will work !
Also mention there is no way to use a consistent syntax for first vs.
more layers.
The text was updated successfully, but these errors were encountered: