Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: Best practice for reading delimited file

by SuicideJunkie (Vicar)
on Oct 16, 2013 at 18:11 UTC ( [id://1058526]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Best practice for reading delimited file
in thread Best practice for reading delimited file

Ah, nifty!

Since Perl v5.10.0, you can use the /p match operator flag and the ${^PREMATCH} , ${^MATCH} , and ${^POSTMATCH} variables instead so you only suffer the performance penalties.

Is that sentence missing a "once" at the end perhaps?

  • Comment on Re^5: Best practice for reading delimited file

Replies are listed 'Best First'.
Re^6: Best practice for reading delimited file
by Jenda (Abbot) on Oct 17, 2013 at 11:17 UTC

    I think it's missing "for this regexp, not for all regexps anywhere in your script+modules".

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.

Re^6: Best practice for reading delimited file
by Kenosis (Priest) on Oct 16, 2013 at 19:06 UTC

    That certainly is a curiously obscure assertion, given the performance statements a bit later in the documentation. I think you're correct that something is missing here, but I'm not sure it's "once at the end".

      Its just that that's the first thing you see when doing a search-find for the name. It makes it sound like you get all the performance penalties associated with $`.

      If it has all the same penalties as before then its clearly bad to use, so further details don't really matter. ;)

Log In?
Username:
Password:

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

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

    No recent polls found