Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: XML module which one

by sundialsvc4 (Abbot)
on Feb 05, 2013 at 14:12 UTC ( #1017180=note: print w/replies, xml ) Need Help??


in reply to XML module which one

One thing to watch out for as you do this is ... multiple responses to the same CGI-variable.   These appear as multiple occurrences in the data-stream, e.g.:

var1 = 'foo'
var1 = 'bar'

Make sure to use a CGI-variable parsing routine that handles that for you, and be sure also to put it to the test.   Multiple selections from a drop-down list can do this, or poorly-written HTML.   Be sure that your code, and your test suite, represents and correctly handles all cases that could exist.

(Mind you ... test it all the way up-and-down the line, including whatever logic is ultimately going to consume that XML file.)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017180]
help
Chatterbox?
[ikegami]: That should be ${ $hash{$key} }[$_] because it's $a[$_] when you don't use a ref.
[oiskuu]: James, that's an array slice you have there (over some hash value)
[ikegami]: Mini-Tutorial: Dereferencing Syntax

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-04-27 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (512 votes). Check out past polls.