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.


Comment on Re: Re: dynamically initializing variables with perl
Select or Download Code
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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-08-02 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (53 votes), past polls