Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: dynamically initializing variables with perl

by chromatic (Archbishop)
on Jan 07, 2003 at 17:45 UTC( #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
Node Status?
node history
Node Type: note [id://225033]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2016-08-30 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (418 votes). Check out past polls.