CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced: Re: [cuboidgraphix] Question about parsing this line...: Edit Log



KevinR
Veteran


Jan 23, 2009, 3:03 PM


Views: 3467
Re: [cuboidgraphix] Question about parsing this line...

Yes there can be two or more delimiters but then the line will be split on each delimiter you define. Thats probably not what you want to happen. If you did want to split on the spaces (or multiple spaces) and the commas you can try this:


Code
my @fields = quotewords('[\s,]+', 0, $_);

-------------------------------------------------


(This post was edited by KevinR on Jan 23, 2009, 3:07 PM)


Edit Log:
Post edited by KevinR (Veteran) on Jan 23, 2009, 3:07 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives