You know, I really hate when perl does things and you don't know why....
I'm submitting a form and doing an SQL query in the script using form input.
I have:
SELECT From Table WHERE Column = '$in{Field}'
I wasn't getting any results so printed out the query and it showed:
SELECT From Table WHERE Column = ''
...so obviously the input isn't coming along to my routine so I tried printing everything in %in....
....low and behold I see the $in{Field} input.
Both the die() and SQL query were printed in the same subroutine on the same line with no other code around.
How the heck can it print a value using die but not printing $in{Field} directly?
ARGHH!!!
I'm submitting a form and doing an SQL query in the script using form input.
I have:
SELECT From Table WHERE Column = '$in{Field}'
I wasn't getting any results so printed out the query and it showed:
SELECT From Table WHERE Column = ''
...so obviously the input isn't coming along to my routine so I tried printing everything in %in....
Code:
die ( map { "\$in{$_} => $in{$_}\n" } keys %in );....low and behold I see the $in{Field} input.
Both the die() and SQL query were printed in the same subroutine on the same line with no other code around.
How the heck can it print a value using die but not printing $in{Field} directly?
ARGHH!!!