Help for this page

Select Code to Download


  1. or download this
           If what’s within the angle brackets is neither a filehandle nor
    + a sim‐
           ple scalar variable containing a filehandle name, typeglob, or 
    +typeglob
    ...
           $x is a simple scalar variable, but $hash{key} is not--it’s a h
    +ash ele‐
           ment.  Even "<$x >" (note the extra space) is treated as "glob(
    +"$x ")",
           not "readline($x)".
    
  2. or download this
    my $fh = $test{FH};
    print <$fh>;
    
  3. or download this
    use IO::Handle;
    print $test{FH}->getlines();