in reply to Re^2: Getting "un initialized value" error though variable is initialized. Please help.
in thread Getting "un initialized value" error though variable is initialized. Please help.

I quite agree with GrandFather.

In fact, I think I would go a bit further and advise the use of more 'documentary' scalar variable names:
    chomp (my $raw_wwn = lc <STDIN>);
    ...
    my $fixed_wwn = join ':', unpack '(a2)*', $raw_wwn;
    do_something_with($fixed_wwn);

  • Comment on Re^3: Getting "un initialized value" error though variable is initialized. Please help.
  • Select or Download Code