Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: variable declaration question

by BillKSmith (Vicar)
on Jan 18, 2013 at 21:09 UTC ( #1014127=note: print w/replies, xml ) Need Help??


in reply to variable declaration question

The parenthesies can also be used to force list context.

my $string = 'aaa1234bbb'; my ($number) = $string =~ /(\d+)/;
Bill

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014127]
help
Chatterbox?
[Corion]: A good morning to you too, Discipulus!

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2018-05-21 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?