Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Seeing Perl in a new light

by tilly (Archbishop)
on Apr 16, 2009 at 05:34 UTC ( #757843=note: print w/replies, xml ) Need Help??


in reply to Re: Seeing Perl in a new light
in thread Seeing Perl in a new light

That maxim is from David Wheeler. However Kevlin Henney's corollary has much truth as well: "...except for the problem of too many layers of indirection."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://757843]
help
Chatterbox?
[Corion]: Text::CSV_XS for all your CSV file parsing needs. Other than that, what problems do you have with perlre, and capturing everything after the comma? Also, index and substr would also work.
[choroba]: my ($value) = $string =~ /.*,(.*)/
[choroba]: The .* at the beginning matches the longest possible substring, so it eats any previous commas
[choroba]: But for CSV, use appropriate modules

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2018-05-27 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?