Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by ww (Archbishop)
on Dec 11, 2015 at 17:46 UTC ( [id://1150055]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use 5.018;
    use strict;
    ...
    my @v;
    (@v = keys %foo) == 1 or warn "Got more than one: " . @v . "\n";
    print "V:@v\n";
    
  2. or download this
    Got more than one: 3
    V:was do eggs
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-18 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found