You should create a CGI query object and use the OO interface.
Why? The functional interface works fine here. What advantages do you think the OO interface has?
If you use the functional interface there's another step to it, before you can read parameters. Forgotten what it is at the moment, sorry.
To use the functional interface you need to import the required functions into your program's namespace. One way to do that is with the
use CGI ':standard';
line that this program already has. So it seems that the functional/OO difference is a complete red herring here.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re^4: use variable as name for new file
by davorg
in thread use variable as name for new file
by Zcity
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |