in reply to Some code
in thread use strict seems to hose my code
my ($buffer,$name,$value,@pairs,$pair); @pairs = split(/&/, $buffer);
you are acting on an empty $buffer: the my declaration of $buffer 'initializes' it, so when you use split() to get the values from it, you are acting on an 'empty' variable. You might want to move that
a little higher on your script.my ($buffer);
Do you get any warnings that tell you you are acting on undefined data? try printing $buffer before and after the split(), because it might tell you the problem is there...
Update: you say you don't even get 'empty' lines printed, which tells me you never run the for() loop... try to print() @pairs before entering the for()
hope this helps,
|
---|