Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Regex help needed

by Anonymous Monk
on Apr 23, 2012 at 10:16 UTC ( [id://966566]=note: print w/replies, xml ) Need Help??


in reply to Regex help needed

use 5.010; for my $line (qw( Johnson%Andrew%AX321%Engineer Smith%John%BC142%Alberta )) { my @fields = split /%/, $line; say "$fields[1] $fields[0]" if $fields[2] =~ /^A/; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found