in reply to pure perl tail

The code in File::Tail and File::ReadBackwards is also "pure Perl". How is yours better? How is your distinct? I can already see bugs in your code from presumptions you've made.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: •Re: pure perl tail
by Spenser (Friar) on Sep 06, 2002 at 22:19 UTC

    Minor comment, not meant to start an argument:  I don't think it's necessary to always look to use a perl module as your comment, merlyn, seems to imply.  Of course, if one is floundering with a task, look for a module.  But if one can pull a task off without much trouble, then I think one should try to create one's own code if for no other reason than for the experience.  zentara doesn't seem to be knocking modules with the "pure perl" reference--I think he's trying to avoid system calls since that may feel like cheating sometimes--so there's no need to knock his code.

    Having said all that, zentara, buddy, listen to merlyn and use the File::Tail module and get on with your life.  There are more interesting fish tails to fry.

    -Spenser

    That's Spenser, with an "s" like the detective.

      Reinventing the wheel to learn is fine, but don't assume the wheel has yet to be invented.

      --
      perl -pew "s/\b;([mnst])/'$1/g"