Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Problem with larger files (and s/)

by Cloudster (Novice)
on Jun 25, 2008 at 14:54 UTC ( #693956=note: print w/replies, xml ) Need Help??


in reply to Re: Problem with larger files (and s/)
in thread Problem with larger files (and s/)

Thank you very much for your trivial correction, it was spot-on. I'm learning Perl via an older copy of O'Reilly's Perl CD collection, and had not yet seen an example of using /s as an if test. Works like a charm.

As far as the Unicode problem, see my reply to the previous reply.

*facepalm again*
  • Comment on Re^2: Problem with larger files (and s/)

Replies are listed 'Best First'.
Re^3: Problem with larger files (and s/)
by jethro (Monsignor) on Jun 25, 2008 at 16:39 UTC
    Sorry, the 'trivially' wasn't meant as in 'trivial problem' but more like 'less sophisticated solution', i.e. without packing it into one regex or using negative lookahead (which I wanted to mention, but I couldn't remember the name, which was ample proof to me that it is a non-trivial solution). ;-)
      I had replied to your message, but apparently it vanished. I had no problem with your usage of the term 'trivial', and I appreciate you not giving a highly-dense solution as I'm still learning the language and high density would require more brainpower than I'm willing to devote to it. I also plan on posting this code on SQLServerCentral.com for other DBAs to use and modify, and by using a simpler, 'trivial' implementation, the code will be more easily modified by others. If they know how to make it more dense, let 'em.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2019-08-22 00:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?