Skip Menu |

This queue is for tickets about the File-Tail CPAN distribution.

Report information
The Basics
Id: 16866
Status: open
Priority: 0/
Queue: File-Tail

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



This is more of an enhancement instead of a bug but since the author is unresponsive (I asked a question 3 weeks + ago while starting work on File::Tail::App (the seek_to() method to be exact) and never got a response) so I'm posting it here in hopes it will get read :) In the POD its stated: Show quoted text
> If the open fails, the module performs a croak. > I am currently looking for a way to set $! and return undef.
instead of: unless (open($newhandle,"<$newname")) { ... } use: open $newhandle, '<', $newname or return; ... Also, it'd be great if the code was "Perl Best Practices" (By Damian Conway - O'reilley) safe (or at least much more cleanly written) so it'd be easier to work with. Just my .02 :) HTH - Dan Muey
Subject: solution to your open/return/$! statement in POD
[guest - Mon Jan 2 09:38:10 2006]: Whoops :) forgot the subject ;p