Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Declaring with my, assigning, and testing in same line (attributes)

by choroba (Cardinal)
on Dec 12, 2015 at 20:44 UTC ( [id://1150134]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @v :Nonempty = keys %h;
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    my @keys_ok :Nonempty = keys %hash_ok;
    
    my @keys_empty :Nonempty = keys %hash_empty;
    
  3. or download this
        use Data::Dumper;
    
    ...
            warn Dumper('clear', \@_);
            shift->SUPER::CLEAR(@_)
        }
    
  4. or download this
        sub SPLICE {
            my $self = shift;
    ...
            croak "Cannot be empty" if 1 == @$self;
            $self->SUPER::POP(@_)
        }
    
  5. or download this
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
    }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-29 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found