Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: variable declaration question

by BillKSmith (Chaplain)
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


Comment on Re: variable declaration question
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014127]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2014-12-26 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls