Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: CGI and Storable : explain me this, please.

by lepetitalbert (Abbot)
on Apr 27, 2006 at 02:57 UTC ( [id://545938]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI and Storable : explain me this, please.
in thread CGI and Storable : explain me this, please.

Hi Monks

Yes I'm uploading 3 pics.

this works

$db{"1"}{"pic1"} = "$var";

Thanks

The code is

for ($i=1; $i < 4; $i++) { $tmp = "pic" . $i; my $filename = $query->param($tmp); $db{$n}{$tmp} = "$filename"; $upload_filehandle = $query->upload($tmp); open UPLOADFILE, ">$upload_dir/$filename"; binmode UPLOADFILE; while ( <$upload_filehandle> ){ print UPLOADFILE; } close UPLOADFILE; } store \%db, $dbfile ;


Thanks

Have a nice day

"There is only one good, namely knowledge, and only one evil, namely ignorance." Socrates

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found