Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [DanCooperstock] Uninitialized value in pattern match in Convert.pm

Quote Reply
Re: [DanCooperstock] Uninitialized value in pattern match in Convert.pm In reply to
It's a warning. It may not be too important but it means that there's a variable being used in that regex that has not been initialized. There are various reasons why this might happen.

eg...

Code:
#!/usr/bin/perl -w

my $variable;
if ($variable =~ /test/) {
print "something";
}

If you were to use:

Code:
my $variable = "testing";

...the warning would go away.
Subject Author Views Date
Thread Uninitialized value in pattern match in Convert.pm DanCooperstock 5279 Jun 19, 2007, 2:13 PM
Thread Re: [DanCooperstock] Uninitialized value in pattern match in Convert.pm
Andy 5157 Jun 19, 2007, 2:36 PM
Thread Re: [Andy] Uninitialized value in pattern match in Convert.pm
DanCooperstock 5141 Jun 19, 2007, 2:46 PM
Post Re: [DanCooperstock] Uninitialized value in pattern match in Convert.pm
Andy 5142 Jun 20, 2007, 2:39 AM
Thread Re: [DanCooperstock] Uninitialized value in pattern match in Convert.pm
Wychwood 5155 Jun 21, 2007, 12:10 PM
Thread Re: [Wychwood] Uninitialized value in pattern match in Convert.pm
DanCooperstock 5118 Jun 22, 2007, 4:40 AM
Post Re: [DanCooperstock] Uninitialized value in pattern match in Convert.pm
Wychwood 5133 Jun 22, 2007, 5:21 PM