Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: What does the dash before hash assignment means?

by tobyink (Canon)
on Sep 03, 2013 at 10:03 UTC ( [id://1052061]=note: print w/replies, xml ) Need Help??


in reply to Re: What does the dash before hash assignment means?
in thread What does the dash before hash assignment means?

The fat comma is a bit of a red herring. The same is true with a regular comma...

fun1( -url, $httpRefer ); fun2( -url, $httpRefer );
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Replies are listed 'Best First'.
Re^3: What does the dash before hash assignment means?
by hdb (Monsignor) on Sep 03, 2013 at 10:07 UTC

    Interesting, thanks for this comment! It works in the same way, unless one omits the hyphen. Without it one gets an Bareword "url" not allowed while "strict subs" in use at dash.pl line 9. error.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-29 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found