Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Parse::FixedLength. where did pars() go?

0 views
Skip to first unread message

Stan Brown

unread,
Sep 30, 2004, 9:02:09 AM9/30/04
to
I'm trying to rebuild a crashed amchine.
One of the modules that I'm using is Parse::FixedLength. On an aloder
machine (where everything works), I have version 3.1 of this module
installed. On the new one, I have installed version 5.26.

When I call parse(), now on the new one, I get an error about it not being
declared.

Is there a change in how I need to sue this?

--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin

Sherm Pendley

unread,
Sep 30, 2004, 4:23:56 PM9/30/04
to
Stan Brown wrote:

> When I call parse(), now on the new one, I get an error about it not being
> declared.

The docs for that module say that a parse() method is available and give
an example of its use - is that how you're using it?

> Is there a change in how I need to sue this?

If you want to sue someone, contact a lawyer. :-)

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

Douglas Wilson

unread,
Sep 30, 2004, 5:14:29 PM9/30/04
to
Stan Brown <st...@panix.com> wrote in message news:<cjh04h$7ks$1...@reader1.panix.com>...

> I'm trying to rebuild a crashed amchine.
> One of the modules that I'm using is Parse::FixedLength. On an aloder
> machine (where everything works), I have version 3.1 of this module
> installed. On the new one, I have installed version 5.26.
>
> When I call parse(), now on the new one, I get an error about it not being
> declared.
>
> Is there a change in how I need to sue this?

Versions before 5 had a memory leak (not sure exactly which ones),
and the calling API changed completely
when it changed authors and was rewritten in versions 5 and later.
It is now an OO module, and has no exported functions. You'll need to re-read
the docs and make the code look more like the examples there. It is
actually more efficient now, as the format is now defined in the object
constructor, and not on every call to parse(). Or you can keep using the
old version if it works for you :)

HTH,
Douglas Wilson

0 new messages