Help for this page

Select Code to Download


  1. or download this
    sub foo {
      defined($file = <abc*>) or return;
      open(FH, $file) or die $!;
      ...
    }
    
  2. or download this
           A glob evaluates its (embedded) argument only when it is
           starting a new list.  All values must be read before it
           will start over.  In a list context this isn't important,
    ...
           context, however, the operator returns the next value each
           time it is called, or a undef value if you've just run
           out.