in reply to Re^2: Partial string match -- with a twist.
in thread Partial string match -- with a twist.

This form of matching is more common:
if ($key =~ m/(node[0-9]*)/) { print "You entered " .$1. ":" . $ref->{$1}. "\n"; }
Sorry if my advice was wrong.

Replies are listed 'Best First'.
Re^4: Partial string match -- with a twist.
by smw6181 (Initiate) on Jul 20, 2012 at 14:52 UTC

    That works as well and is cleaner looking. Thanks to you as well. :)

Re^4: Partial string match -- with a twist.
by smw6181 (Initiate) on Jul 20, 2012 at 15:03 UTC

    That works as well and is cleaner looking. Thanks!