Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: dynamically initializing variables with perl

by chromatic (Archbishop)
on Jan 07, 2003 at 17:45 UTC ( [id://225033]=note: print w/replies, xml ) Need Help??


in reply to Re: dynamically initializing variables with perl
in thread dynamically initializing variables with perl

I wouldn't use the map, though it's popped up a few times recently. What if someone passed parameters such as this?

C1 = 1 C2 = 1 C2 = 0 C2 = 1 C3 = 0

You'll end up with an array of (1, 1, 0, 1, 0) when you're only expecting three checkboxes.

Replies are listed 'Best First'.
Re: Re: Re: dynamically initializing variables with perl
by busunsl (Vicar) on Jan 08, 2003 at 06:59 UTC
    I suppose the checkboxes are created dynamically since it is a mail app.
    So they will be named uniquely and this shouldn't be a problem.

      You're right, it shouldn't be a problem, if you trust the client. Never trust the client.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-16 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found