in reply to Getting "un initialized value" error though variable is initialized. Please help.

Using Grandfather's elegant solution, I reversed the condition and built a simple until loop out of that.
#!/usr/bin/perl -l use strict; use warnings; my $name = ''; until ( $name eq 'q' ) { print "Enter the wwn: "; chomp( $name = lc <STDIN> ); print join( ':', unpack( "(a2)*", $name ) ); next; }
  • Comment on Re: Getting "un initialized value" error though variable is initialized. Please help.
  • Download Code