in reply to Re: Partial string match -- with a twist.
in thread Partial string match -- with a twist.
That did the trick. Amazing how something so simple can be so easily missed. Thank you both very much.if ($key =~ m/(node[0-9]*)/) { if ($key = $1) { print "You entered " .$key. ":" . $ref->{$key}. "\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Partial string match -- with a twist.
by aitap (Curate) on Jul 20, 2012 at 14:16 UTC | |
by smw6181 (Initiate) on Jul 20, 2012 at 14:52 UTC | |
by smw6181 (Initiate) on Jul 20, 2012 at 15:03 UTC |