Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Usage of File::Tail::Multi generates conversion errors

by fmerges (Chaplain)
on Nov 18, 2008 at 23:57 UTC ( #724432=note: print w/ replies, xml ) Need Help??


in reply to Usage of File::Tail::Multi generates conversion errors

Hi,

Following MidLifeXis hint, printf expect to get a format, as the first argument, in your case that would be "$line\n", so whatever it's in $line + the "\n" will be used as the format, then it will try to substitute by the LIST of replacements, which is empty.

Use print in all cases, except for those where you really want to have a specific format, where it comes handy to use printf.

Regards,

fmerges at irc.freenode.net


Comment on Re: Usage of File::Tail::Multi generates conversion errors
Re^2: Usage of File::Tail::Multi generates conversion errors
by WaywardBuddha (Initiate) on Nov 21, 2008 at 19:23 UTC
    I hate it when it is something so stupid... Simply changing it to a print worked fine. The script is really starting to come together now too. Thanks all!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://724432]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2015-07-07 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls