in reply to Re: user input behavior from within a subroutine
in thread user input behavior from within a subroutine
if ($value_add gt 0){ foreach $value (@value_add){ print "Is $value an attribute (y or n)? "; $response = <STDIN>; chomp($response); if ($response =~ "y" || $response =~ "Y"){ print "response is $response\n"; print "configure as an attribute\n"; } else { print "response is $response\n"; print "configure as a parser\n"; } } # end foreach $value (@value_add) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: user input behavior from within a subroutine
by ptum (Priest) on Aug 02, 2006 at 18:46 UTC |