Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Declaring with my, assigning, and testing in same line

by NetWallah (Canon)
on Dec 11, 2015 at 15:27 UTC ( #1150048=note: print w/replies, xml ) Need Help??


in reply to Declaring with my, assigning, and testing in same line

Slightly more localized variables than tye, but still hardly worth it:
my @v=sub{@_>1 and die "Got more than one: @_\n";@_}->(keys %x)'

        Our business is run on trust. We trust you will pay in advance.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-05-17 21:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (68 votes). Check out past polls.

    Notices?