- or download this
my $filename = $upload->file_name( 'fichier' );
my $type = $upload->file_type( 'fichier' );
my $file_handle = $upload->file_handle( 'fichier' );
- or download this
sub file_XXXX {
my $self = shift;
...
return $self->{'_PARAMS'}->{$param}->{'file_XXXX'};
}
- or download this
my $object = {
'file_handle' => $fh,
...
$fh->binmode if $CGI::needs_binmode;
return $object;
- or download this
sub _handle_file {
# ... more code
...
# ... more code
}
- or download this
my $browser = HTTP::BrowserDetect->new;
fileparse_set_fstype(
...
? 'MacOS'
: $^0
);
- or download this
#!/usr/bin/perl -w
use strict;
...
print test( 3 ),$/;
print test( 5 ),$/;
sub foo {};