Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: DBI recipes

by demerphq (Chancellor)
on Aug 18, 2003 at 18:11 UTC ( #284663=note: print w/replies, xml ) Need Help??


in reply to Re: DBI recipes
in thread DBI recipes

would you present something like:

Hmm, I guess you would be upset with me if I wrote that as

@ARGV=qw(/path/to/file); while (<>) { chomp; ... }

which of late ive taken to doing in quick and dirty scripts? *grin*


---
demerphq

<Elian> And I do take a kind of perverse pleasure in having an OO assembly language...

Replies are listed 'Best First'.
Re: DBI recipes
by Abigail-II (Bishop) on Aug 18, 2003 at 20:42 UTC
    Hmm, I guess you would be upset with me if I wrote that as
    ...
    which of late ive taken to doing in quick and dirty scripts?

    Only if you present that as "Perl idiom" in a tutorial.

    Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://284663]
help
Chatterbox?
[Corion]: Meh. I have a very simple mechanism to scrape+track prices, and even to send me mail if something changes (via cron), but SQLite doesn't support window functions, so my simple SQL to determine a price change won't work :-( Maybe I should store the DB ...
[Corion]: ... in Pg, but that would mean that I'd have to deal with credentials and stuff :)
[Corion]: In fact, the whole thing is just four simple programs, one App::scrape, another being DBIx::RunSQL, and one some glue to convert a JSON object into an SQL INSERT statement (+DBI connect/execute), so it would be an incredibly simple solution...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2018-02-23 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (302 votes). Check out past polls.

    Notices?