Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^8: RFC: Is there more to alias?

by xmath (Hermit)
on Aug 25, 2004 at 09:04 UTC ( #385625=note: print w/ replies, xml ) Need Help??


in reply to Re^7: RFC: Is there more to alias?
in thread RFC: Is there more to alias?

You can use either syntax, so if you think alias { push(@x, $y) } is clearer, use that. (I'm personally a fan of sparse use of parens and braces, but maybe that's just my strange taste). Note however indeed that if you try to do my-declarations, you can run into trouble... alias { my $x = $y } would do nothing useful, since the scope of $x is limited to the block.

On a side note, the lexer hack is actually to make alias { .. } work. alias LIST is the normal mode of operation.


Comment on Re^8: RFC: Is there more to alias?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://385625]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2014-12-29 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls