#perl - Sun 22 Apr 2007 between 00:00 and 00:32



BogaurdJmax-: I'm having a look at file::tail, but the example syntax seems a bit confusing (i'm quite new to perl)
Jmax-heh
IceShamanis there an eays way to DES a pass and salt, crypt() on a new system is giving md5 hashes out, which aren't compatible with the old ones...
BogaurdJmax-: something like this ok?
$log = File::Tail->new(name=>"$_",debug=>"$debug");
Jmax-well you don't need to use quotes for variables like that
Bogaurdok
can I then do something like $log::select(); ?
Jmax-no
$log->select
Bogaurdoh ok
Jmax-: Do you mind if I PM you a couple of lines of syntax?
Jmax-perlbot nopaste
perlbotPaste your code at http://sial.org/pbot/perl and #perl will be able to view it
Bogaurdok
pasteling"Bogaurd" at 219.90.171.1 pasted "I'm looking to use file::tail rather than linux tail" (7 lines, 256B) at http://sial.org/pbot/24392
Jmax-yes Bogaurd that should be fine
Bogaurdah nice
Jmax-you don't need quotes for $_ though, unless you're purposefully string-ifying it
Bogaurdhow can i change the interval between reads?
yeah, i just relalised that ($_)
Jmax-that's a blocking read
Bogaurdoh right
so it'll just sit there trying to read
Jmax-yeah
Bogaurdok.. let me try it out :)
hmm
nothing coming back Jmax- :-(
oh wait.. now there is, just took a long time to show up
Jmax-heh
Bogaurdyeah, it looks like it's sleeping for a while
it returns chunks of 5 or 10 lines at once
every 10 secs or so
shardzWhen executing a system command with `<command>` , can I use scalars as part of the command? As in, `ls $dir`?
Jmax-yes
actionCPAN upload: Email-MIME-XPath-0.003 by HDP
CPANupload: Email-MIME-XPath-0.003 by HDP
shardzJmax-: thanks
Jmax-Flibble19642: jerk it
Flibble19642Jmax-: CHIRP PIRP CHIRP PIRP CHIRP PIRP HYPNOTIZING ME CHIRP YOU'RE GAY CHIRP YOU'RE GAY CHIRP GAY A GAY CRICKET IN THE BIG BIG CITY FROG AND TOAD ARE FAGS
Jmax-(satisfied customer)++

Page: 2 9 16 23 30 37 44 51 58 65 

IrcArchive