Help for this page

Select Code to Download


  1. or download this
    sub import_file
    {
    ...
                   handle => $upload->file_handle("upload"),
                   mime => $upload->mime_type("upload"),
                 );
    
  2. or download this
    Error executing run mode 'import_file': $VAR1 = {
      'handle' => bless( \*IO::File::_GEN_0, 'IO::File' ),
    ...
      'type' => 'txt',
      'mime' => 'text/plain'
    };
    
  3. or download this
    my @foo = ();
    while($_ = $file{handle}->getline) { push @foo, $_; }
    
  4. or download this
    my @foo = ();
    while($_ = \*{$file{handle}}->getline) { push @foo, $_; }
    
  5. or download this
    Error executing run mode 'import_file': Can't call method "getline" wi
    +thout a package or object reference
    
  6. or download this
    die "Weeee!!!!!" if($file{handle}->opened);
    
  7. or download this
    Error executing run mode 'import_file': Weeee!!!!!
    
  8. or download this
        my $buffer;
        my @results;
    ...
            push (@results, pack("u", $buffer));
        }
        $fh->close;