this should lock the file:
open(FH, ">>somefile.log") or print "can't append to file: $!";
flock(FH, 2) or die "can't flock file: $!";
# ~ output to file
close FH;
At 07:00 AM 8/24/2001, Joe Bellifont wrote:
>Hi,
>I have an html form that when submitted writes to a log file.
>How can
ile.
>simply,click here to download my file
>and the browser,itself will automatically bring that dialog box,
>whenever user clicks on "Click here to download my file".
>
>:)
>
>
>
>>From: Tim Keefer <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>
hello programmers,
I'm trying to output data from a Perl cgi program and would like the
browser to open a save dialog box so the user can save the file to disk. I
would graciously accept any suggestions
Tim
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
hello all,
Has any one had any luck creating shortcuts for windows NT using
Win32::Shortcut module. I have tried the examples in the O'Reilly
documentation many times and I still can't create a shortcut. Any help
would be appreciated.
Thanks,
Tim
Hi Ela,
The documentation for perl LWP agent seems sparse. I had a difficult time
figuring out how to send multipart form-data. I'll share the code with you that
some shared with me. Hope it helps.
require LWP;
use LWP::UserAgent;
use HTTP::Request::Common;
# Create a user agent object