Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: variable declaration question

by BillKSmith (Deacon)
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 drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2015-07-07 07:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls