Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: validating a quoted string

by poj (Abbot)
on Jan 13, 2016 at 16:00 UTC ( [id://1152699]=note: print w/replies, xml ) Need Help??


in reply to validating a quoted string

Maybe use Text::ParseWords

#!perl use strict; use Text::ParseWords; while (<DATA>){ chomp; my @parts = quotewords('\s+',0,$_); print join "|",@parts,"\n"; } __DATA__ "my" "dog" "my" "dog shepherd" my dog my "dog shepherd" "my "dog" my "dog shepherd
poj

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-24 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found