Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
create view V_PAID_USERS as select * from users u, subcription s where u.user_id=s.user_id and s.balance =< 0; CREATE OR REPLACE VIEW V_OVERDUE AS select * from users u, subscription s where u.user_id=s.user_id and s.duedate > 60; create TABLE UNPAID_USERS as select * from users u, subcription s where u.user_id=s.user_id and s +.balance > 0; create view receipts as select * from unpaid_users; Here's the code: if($_ =~ /create\s/i .. /V_\w+/i) { if($_ =~ /(V_\w+)/i) { print OUTFILE "$path Line: $line_cnt: $1\n"; } } if($_ =~ /create\s/i .. /T_\w+/i) { if($_ =~ /(T_\w+)/i) { print OUTFILE "$path Line: $line_cnt: $1\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pattern matching "dirty" data sources
by LameNerd (Hermit) on Apr 30, 2003 at 18:09 UTC | |
|
Re: Pattern matching "dirty" data sources
by pzbagel (Chaplain) on Apr 30, 2003 at 18:19 UTC | |
|
Re: Pattern matching "dirty" data sources
by BrowserUk (Patriarch) on Apr 30, 2003 at 22:56 UTC | |
|
Re: Pattern matching "dirty" data sources
by dragonchild (Archbishop) on Apr 30, 2003 at 17:51 UTC | |
by Anonymous Monk on Apr 30, 2003 at 19:07 UTC |