M
mike
Can anyone tell me why the following script gives an error message stating
'use of uninitialized value in concatenation or string at line 20'?:
#!/usr/bin/perl -wT
#This is a.cgi, called by woxYNzucw.cgi
use strict;
no strict "refs";
use CGI::Carp qw(fatalsToBrowser);
use CGI qw
standard -no_xhtml);
use diagnostics;
my $co = new CGI;
print $co->header;
my @atoms = qw ();
print $co->start_html(-title=>'ref');
my $var=5;
my $refv=\$var;
print $co->h2("var = $var; dereferenced hard ref = $$refv");
my $varr=6;
my $varref="varr";
my $vv=$$varref;
print $co->h2("dereferenced varr is $vv");
With output:
var = 5; dereferenced hard ref = 5
dereferenced varr is
Thank you for any help. (I'm not sure why the color change)
'use of uninitialized value in concatenation or string at line 20'?:
#!/usr/bin/perl -wT
#This is a.cgi, called by woxYNzucw.cgi
use strict;
no strict "refs";
use CGI::Carp qw(fatalsToBrowser);
use CGI qw
use diagnostics;
my $co = new CGI;
print $co->header;
my @atoms = qw ();
print $co->start_html(-title=>'ref');
my $var=5;
my $refv=\$var;
print $co->h2("var = $var; dereferenced hard ref = $$refv");
my $varr=6;
my $varref="varr";
my $vv=$$varref;
print $co->h2("dereferenced varr is $vv");
With output:
var = 5; dereferenced hard ref = 5
dereferenced varr is
Thank you for any help. (I'm not sure why the color change)