in reply to variable declaration question
The parenthesies can also be used to force list context.
my $string = 'aaa1234bbb'; my ($number) = $string =~ /(\d+)/;
Bill
|
---|
In Section
Seekers of Perl Wisdom
in reply to variable declaration question
The parenthesies can also be used to force list context.
my $string = 'aaa1234bbb'; my ($number) = $string =~ /(\d+)/;
|
---|