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

Re: Problem with ampersand and regex

by ikegami (Patriarch)
on Dec 19, 2012 at 23:24 UTC ( [id://1009660]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $line = "mail: asdf@123.com";
    
  2. or download this
    my $line = 'mail: asdf@123.com';
    
  3. or download this
    if (my ($mail) = $line =~ /mail: (.*)/) {
        print "mail=$mail\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-16 10:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found