Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: How to de-reference a coderef?

by Anonymous Monk
on Dec 09, 2004 at 20:50 UTC ( [id://413682]=note: print w/replies, xml ) Need Help??


in reply to •Re^5: How to de-reference a coderef?
in thread How to de-reference a coderef?

I'd like to see this, namely as in my head I can only imagine the syntax of...

my $sub = Sub sub { my $x = shift; print $x };

Being that I thought { } was the anonymous hash composer. I'm really curious about this though, and syntax reduction in general. Writing things that act like Ruby/Groovy blocks is kind of ugly when you have to use the sub keyword all of the time.

Replies are listed 'Best First'.
•Re^7: How to de-reference a coderef?
by merlyn (Sage) on Dec 10, 2004 at 00:06 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2024-03-28 19:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found