Help for this page

Select Code to Download


  1. or download this
    my $cursor = \%foo;
    for(qw(foo bar)) {
    ...
    }
    
    print "exists\n" if $cursor;
    
  2. or download this
    sub exists_novivify {
        my $cursor = shift;
    ...
    }
    
    print "exists\n" if exists_novivify \%foo, qw(bar baz);