Help for this page

Select Code to Download


  1. or download this
    use File::Temp qw( tempfile );
    
    ...
    my ($fh, $file) = tempfile( UNLINK => 1 );
    
    $fh->getline;
    
  2. or download this
    $ perl ttrap.t
    
  3. or download this
    $ perl ttrap.t
    Can't locate object method "getline" via package "FileHandle" at ttrap
    +.t line 12.
    
  4. or download this
    $ perl ttrap.t
    required
    
  5. or download this
    require FileHandle;
    
  6. or download this
    eval 'require FileHandle';
    
  7. or download this
    use if $^V ge v5.10.0 && $^V lt v5.11.0, 'FileHandle';