Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: CGI.pm file uploads in very generic script

by amelinda (Friar)
on Nov 14, 2001 at 05:06 UTC ( [id://125192]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI.pm file uploads in very generic script
in thread CGI.pm file uploads in very generic script

I think I understand what you mean. But I'd like to clarify it just a little further.

So, if we have:

$q->param('foo', 'junk'); $q->append('foo', "$something");
is 'foo' now "junk$something" or is it ["junk", "$something"]?

Replies are listed 'Best First'.
Re: Re: Re: CGI.pm file uploads in very generic script
by pjf (Curate) on Nov 14, 2001 at 05:09 UTC
    The latter. ["junk","$something"];

    If you want to turn that into the first (ie, one big concatenated string), you can do this:

    $q->param("foo",join("",$q->param("foo")));

    Cheers,
    Paul

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-26 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found