dbmopen problem

2003-12-07 Thread Joel Newkirk
I've run into a problem. I have been working on a webmin module that, among other things, maintains a dbm file of regular expressions. One subroutine is passed a string, and if any of the regular expressions matches, it returns the associated explanation text. I can read and write this dbm with n

Re: dbmopen problem

2003-12-10 Thread Joel Newkirk
Well, I guess I'll reply since nobody else has... Problem is I still have no clue what's wrong here... :^) Surely somebody here can offer a hint? Please? :^) j On Mon, 2003-12-08 at 01:06, Joel Newkirk wrote: > I've run into a problem. I have been working on a webmin mo

Re: dbmopen problem - solved

2003-12-11 Thread Joel Newkirk
On Wed, 2003-12-10 at 20:58, Joel Newkirk wrote: > On Mon, 2003-12-08 at 01:06, Joel Newkirk wrote: > > Now I'm working on a console command to offer the same functionality > > (only needing to read the rules, not write) using the same dbm. I've > > used precisel

Re: dbmopen problem

2003-12-11 Thread Joel Newkirk
On Wed, 2003-12-10 at 22:07, Owen wrote: > On Mon, 08 Dec 2003 01:06:04 -0500 > Joel Newkirk <[EMAIL PROTECTED]> wrote: > > > dbmopen (%PLRULES, "/var/szs/rules.dbm", undef) or die $!; > > I die, with "No such file or directory". > > No idea b

Re: dbmopen problem

2003-12-11 Thread Joel Newkirk
On Wed, 2003-12-10 at 22:11, drieux wrote: > On Dec 10, 2003, at 5:58 PM, Joel Newkirk wrote: > [..] > >> whenever I reach: > >> dbmopen (%PLRULES, "/var/szs/rules.dbm", undef) or die $!; > >> I die, with "No such file or directory". > [

Re: dbmopen problem - solved

2003-12-11 Thread Joel Newkirk
On Thu, 2003-12-11 at 14:06, drieux wrote: > On Dec 10, 2003, at 11:34 PM, Joel Newkirk wrote: > [..] > > I found my problem - apparently webmin was doing "use GDBM_File;" for > > me, which is why it worked in the webmin module, and since I wasn't > > i

Re: help looping through text file

2003-12-13 Thread Joel Newkirk
On Fri, 2003-12-12 at 15:59, John Fitzgerald wrote: > I need a list set like this: > IDdate > 3008 11/1/03 > 3008 11/1/03 > 3008 11/1/03 > 3010 12/1/03 > 3010 12/1/03 > > So I need repeating ID's, with the earliest date for > each ID. If the order of the data is preserved, I can > use ju

Re: Split question

2003-12-14 Thread Joel Newkirk
On Sun, 2003-12-14 at 14:52, John W. Krahn wrote: > Josimar Nunes De Oliveira wrote: > > > > From: "Perl" <[EMAIL PROTECTED]> > > > > > > @temp = split(/#/, "abc#def#ghi#jkl") ; > > > > > > doesn't seem to work. > > > > > > am i doing anything wrong here ? > > > > Try this: > > > > @temp = spl

Re: Split question

2003-12-15 Thread Joel Newkirk
On Sun, 2003-12-14 at 18:11, Joel Newkirk wrote: > > > > The first argument to split is converted to a regular expression and the > > '#' character is not special in a regular expression so split/#/ and > > split'\#' do exactly the same thing. >

double-log-tail

2004-01-12 Thread Joel Newkirk
I'm interested in tailing two logs (qmail) simultaneously, and interleaving the data in something approaching chronological sequence, as well as dealing with logfile rotation gracefully. Any suggestions? j -- "Not all those who wander are lost." - JRR Tolkien -- To unsubscribe, e-mail: [EMA

tai64 timestamp

2004-01-12 Thread Joel Newkirk
I'm trying to convert tai64 timestamps (qmail) to human-readable form. I installed DateTime::Format::Epoch::TAI64 and dependancies, and below is the latest mutation of a test program. The output lists the tai64 timestamp correctly, and the source IP ($src), but the converted time ($dt->hms) is 00

Re: double-log-tail

2004-01-21 Thread Joel Newkirk
Cool, thanks - both look promising. j On Mon, 2004-01-19 at 14:47, Wiggins d'Anconia wrote: > Joel Newkirk wrote: > > I'm interested in tailing two logs (qmail) simultaneously, and > > interleaving the data in something approaching chronological sequence, > >