Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: File::CounterFile problems and hashes

by cecil36 (Pilgrim)
on Oct 24, 2002 at 12:57 UTC ( [id://207686]=note: print w/replies, xml ) Need Help??


in reply to Re: File::CounterFile problems and hashes
in thread File::CounterFile problems and hashes

Another problem.
$counter = File::CounterFile->new("./msgid", "1"); $id = $counter->value(); $filename = "pagemsg".$id;
I get a "Bad counter magic" error when the value is accessed. Am I accessing the counter file properly?

Replies are listed 'Best First'.
Re^3: File::CounterFile problems and hashes
by particle (Vicar) on Oct 24, 2002 at 13:44 UTC

    i'm having trouble installing File::CounterFile. 'nmake test' is barfing badly on perl 5.6.1 build 626 for MSWin32. i get a 'bad counter magic' error from 't/basic.t'. until this is resolved, i can't help you debug File::CounterFile any more. perhaps i'll get a chance to look at the module later this week.

    ~Particle *accelerates*

Re: Re: Re: File::CounterFile problems and hashes
by broquaint (Abbot) on Oct 24, 2002 at 14:01 UTC
    According to the File::CounterFile code unless the first line of the counter file is #COUNTER-1.0 you'll get the Bad counter magic error. Was the counter file created by File::CounterFile? If not remove the existing file and let the module do the rest.
    HTH

    _________
    broquaint

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-20 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found