Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: separating two sententences

by Anonymous Monk
on Sep 16, 2011 at 04:23 UTC ( #926300=note: print w/replies, xml ) Need Help??


in reply to Re^3: separating two sententences
in thread separating two sententences

i am totally confused with regex here.it doesnt recognize the word after ; and between " " and another question is email address.some of them start with numbers and some with alphabet.oooooooooh!!

Replies are listed 'Best First'.
Re^5: separating two sententences
by dreadpiratepeter (Priest) on Sep 16, 2011 at 04:30 UTC
    even though you STILL haven't told me what your error is, I'll try to help. Here is a different approach:
    while(<IN>) { chomp; my ($email,$name) = split /;/; $name =~ s/\"//g; print $email . ',' . $name . "\n"; }


    -pete
    "Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2016-10-01 20:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.