Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Aliasing bites

by ambrus (Abbot)
on May 10, 2005 at 20:31 UTC ( [id://455749]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @root = (1022, 2);
    
  2. or download this
    $verbose and warn "found " . @root . " root nodes: " . join(" ", grep 
    +{ defined } @root[0 .. 7]);
    
  3. or download this
    Use of uninitialized value in hash element at ./rock-cut line 163.
    Can't use an undefined value as an ARRAY reference at ./rock-cut line 
    +171.
    
  4. or download this
    $verbose and warn "found " . @root . " root nodes: " . join(" ", @root
    +[0 .. (@root < 8 ? @root : 8) - 1]);
    
  5. or download this
    grep { defined } @root[0 .. 7]
    
  6. or download this
    #!perl
    use warnings; no warnings "uninitialized";
    ...
    $t = $h{17}; @t = @h{18, 19};
    $D->dumpValues(\@a, \%h);
    __END__
    
  7. or download this
    0  ARRAY(0x81495c0)
       0  empty slot
    ...
       5 => 5
       6 => 5
       7 => undef
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://455749]
Approved by ktross
Front-paged by diotalevi
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found