Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
@system_name = qw(box1 box2); print "Please select a system to pull from\n"; $system1 = <STDIN>; chomp ($system1); $original_system = $system1; # save for later use $system1 =~ s/\W.*//; # get rid of everything after th +e first word $system1 =~ tr/A-Z/a-z/; # lowercase everything if (defined(@system_name = $system1)) { print "You have selected $system1\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array confusion
by pelagic (Priest) on Jul 05, 2004 at 10:23 UTC | |
by edan (Curate) on Jul 05, 2004 at 10:35 UTC | |
by Anonymous Monk on Jul 05, 2004 at 11:00 UTC | |
by edan (Curate) on Jul 05, 2004 at 11:11 UTC | |
|
Re: array confusion
by graff (Chancellor) on Jul 05, 2004 at 14:24 UTC | |
|
Re: array confusion
by neeraj (Scribe) on Jul 05, 2004 at 11:22 UTC |