Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2017-08-20 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (313 votes). Check out past polls.

    Notices?