Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re^3: chaining method calls

by BUU (Prior)
on Jun 12, 2003 at 17:38 UTC ( #265421=note: print w/ replies, xml ) Need Help??


in reply to Re^3: chaining method calls
in thread chaining method calls

>> wonder if Perl6 will have an explicit syntax? It's my understanding that perl6 will change the method call operator to operate on the current blocks default variable ($_ is always the default var in perl5). Which allows you write things like:

sub foo { my $bar=new Obj, is default; #ok, I don't remember the exact syntax b +ut I'm sure you get what I mean .foo(); .baz(); .qux(); }


Comment on Re: Re^3: chaining method calls
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-12-20 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (95 votes), past polls