C
Chris Conwell
I've been coding in Perl for some years now but here's a snippet of
code that's got me really stumped:
--------------------------------------------------------------------------------
Code
--------------------------------------------------------------------------------
3913 sub print_price_nicely {
3914 my ($model,$link,$price) = (@_);
3915 return unless ($price);
3916 if ($price) {
3917 if ($price eq "") {
--------------------------------------------------------------------------------
This is giving the error:
"Use of uninitialized value in concatenation (.) or string at
cgi/phones.pl line 3917."
How can the script reach line 3917 and then report "uninitialized
value"?!?!?
Thanks in advance,
Chris
code that's got me really stumped:
--------------------------------------------------------------------------------
Code
--------------------------------------------------------------------------------
3913 sub print_price_nicely {
3914 my ($model,$link,$price) = (@_);
3915 return unless ($price);
3916 if ($price) {
3917 if ($price eq "") {
--------------------------------------------------------------------------------
This is giving the error:
"Use of uninitialized value in concatenation (.) or string at
cgi/phones.pl line 3917."
How can the script reach line 3917 and then report "uninitialized
value"?!?!?
Thanks in advance,
Chris