Mr. Shawn H. Corey wrote:
m/The satchel contains the following items? \((\d+)\): (.*)/ my $count_of_items = $1;my $item_list = $2;
And don't forget to check if it matched (otherwise you have the old $1 and $2):
if (m/The satchel contains the following items? \((\d+)\): (.*)/) {
my $count_of_items = $1;
my $item_list = $2;
# ...
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
