On Wednesday, January 1, 2003, at 09:57  AM, Puneet Kishor wrote:
Folks,

Happy new year to all of you.

I am receiving the following message repeated over and over (different line number) in a script I am writing...

Use of uninitialized value in sort at /Users/pkishor/Sites/eidesis/test.pl line 200, <GEN0> line 1.

I searched Google to try find an answer... I can't fathom what is <GEN0>. Could anyone kindly shed some light?
Probably an automatically generated filehandle. The following code would do something like that:

[localhost:~/bin/test] ken% cat symbol.pl
#!/usr/bin/perl -w

use Symbol;
my $fh = gensym();
open $fh, '/etc/passwd';
$x = <$fh> for 1..3; # Read a few lines
$x = $y . $y . 4;

[localhost:~/bin/test] ken% perl symbol.pl
Use of uninitialized value in concatenation (.) or string at symbol.pl line 7, <GEN0> line 3.
[localhost:~/bin/test] ken%

-Ken



Reply via email to