Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Check remote file for size?

by pjf (Curate)
on Oct 13, 2001 at 12:22 UTC ( [id://118642]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $file = "/path/to/file";
    
    ...
    } else {
        # File is empty or does not exist.
    }
    
  2. or download this
    $SIG{ALRM} = sub { die "Script took too long.\n" };
    alarm(60);    # Create alarm signal in 60 seconds.
    # ... do long-running stuff.
    alarm(0);     # Cancel the alarm
    
  3. or download this
    END {
        unlink($tmpfile);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://118642]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-23 18:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found