I'm stumped here. I have the following lines of code. They work as
expected on my workstations. They work fine in Komodo's debugger with
"Emulate CGI" turned on. But when I put the script on our server--NT
4.0/IIS 4/Perl 5.00502 (I know, I know, but I don't maintain
it)--CGI::Carp carps:
Invalid type in pack: '(' at
d:\web\instruct_tech\cgi-ftc\register.pl line 43.
line 43 is the pack statement below:
...
my $classdb = 'ClassListDB';
my $classpack = "N2 A128 N2 A64 A64 (N3 A)15";
my $packed = pack $classpack, time, time, "aaaaa", time, time,
"bbb", "ccc", 1, 2, 3, "F", 1 , 2, 3, "g";
print $page->p(unpack $classpack, $packed);
open(MYFILE, ">$classdb") or die "$!\n";
...
Can anyone point me to where I've gone wrong? Or is this a server
quirk, which we seem to have plenty of (for instance, "-w" works fine
in the shebang, but "use warnings" can't find warnings.pm)?
Thanks,
-- jay
--------------------------------------------------
This email and attachment(s): [ ] blogable; [ x ] ask first; [ ]
private and confidential
daggerquill [at] gmail [dot] com
http://www.tuaw.com http://www.dpguru.com http://www.engatiki.org
values of β will give rise to dom !