in reply to Re^2: Uninitialized value in concatenation (.) or string?
in thread Uninitialized value in concatenation (.) or string?
If it's undef, it's because of your assignment of undef to $dir back in the while (<FILES>) {...} loop. Perhaps you can use the empty string there instead.print "it's not defined!\n" unless defined(${$refarray3}[1]);
Also, if you want $matchedfiles[$c] to be list of files, you need to use this syntax:
This makes $matchedfiles[$c] an array ref (i.e. @matchedfiles is an array of array refs.)push(@{$matchedfiles[$c]}, [...]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Uninitialized value in concatenation (.) or string?
by jbush82 (Novice) on May 09, 2008 at 17:22 UTC | |
by pc88mxer (Vicar) on May 09, 2008 at 17:54 UTC | |
by jbush82 (Novice) on May 09, 2008 at 18:36 UTC | |
by pc88mxer (Vicar) on May 09, 2008 at 18:52 UTC | |
by jbush82 (Novice) on May 09, 2008 at 19:13 UTC | |
|