in reply to Any idea to let Perl form data and scalar work in same page?
CGI.pm has a method called init which slurps all of STDIN. So if init is called, you can't read STDIN - it's already been read. (And STDIN is a one-time-only thing.)
param internally calls init.
Not sure why you want to be reading this data from STDIN anyway. Just do:
$Chassis=param('Chassis');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Any idea to let Perl form data and scalar work in same page?
by GordonLim (Acolyte) on Mar 20, 2013 at 17:35 UTC |