X
Xzanron
Hi
my foray into the world of perl continues.
The warning i'm getting is: Use of uninitialized value in pattern match
(m//)
I think this might be a style issue, because my program seems to work
correctly, yet I still get this warning. I could turn warnings off, but
since i'm new to this i'd rather not. Since it's a CGI script, the
warning is causing server errors (missing headers etc).
I don't understand how this value can be uninitialised, as i'm
assigning something to it.
The question is then; what am I doing wrong and how do I get rid of
this warning?
The relevant portion of my code is:
foreach my $row ($ts->rows)
{
if (@$row[1] =~ m/Some Pattern/)
{
#do stuff
}
}
Thanks,
Martin
my foray into the world of perl continues.
The warning i'm getting is: Use of uninitialized value in pattern match
(m//)
I think this might be a style issue, because my program seems to work
correctly, yet I still get this warning. I could turn warnings off, but
since i'm new to this i'd rather not. Since it's a CGI script, the
warning is causing server errors (missing headers etc).
I don't understand how this value can be uninitialised, as i'm
assigning something to it.
The question is then; what am I doing wrong and how do I get rid of
this warning?
The relevant portion of my code is:
foreach my $row ($ts->rows)
{
if (@$row[1] =~ m/Some Pattern/)
{
#do stuff
}
}
Thanks,
Martin