Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: fetch html input as hash

by merlyn (Sage)
on Dec 25, 2009 at 14:30 UTC ( #814350=note: print w/ replies, xml ) Need Help??

in reply to fetch html input as hash

Do you mean If so, you can just iterate over them:

use CGI qw(param upload); # and whatever else you want to import ... for my $key (param()) { next unless $key =~ m{^img\[(.*)\]$}; my $image_key = $1; my $image_filename = param($key); my $image_handle = upload($key); # do what you want with $image_key and $image_filename and $image_ha +ndle }

-- Randal L. Schwartz, Perl hacker

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Comment on Re: fetch html input as hash
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2015-11-26 07:51 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls