Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Regex help needed

by Anonymous Monk
on Apr 23, 2012 at 10:16 UTC ( #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
Node Status?
node history
Node Type: note [id://966566]
help
Chatterbox?
and the monastery is silent...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2018-01-18 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (213 votes). Check out past polls.

    Notices?