Click here to get back home

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

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Parse::FixedLength. where did pars() go? Stan Brown 09-30-2004
Posted by Stan Brown on September 30, 2004, 2:02 pm
Please log in for more thread options
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


Posted by Douglas Wilson on September 30, 2004, 3:14 pm
Please log in for more thread options
> 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


Posted by Sherm Pendley on September 30, 2004, 5:23 pm
Please log in for more thread options
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


Similar ThreadsPosted
Problem to get Parse::Yapp and Parse:Flex working together November 2, 2005, 3:15 pm
Parse::Readelf 0.01 - parse the output of readelf September 24, 2007, 12:07 pm
Problems with Parse::Lex May 5, 2005, 8:22 pm
I want to take over module Parse::Lex, how to do it? April 17, 2006, 10:49 pm
How to parse with regular expression... May 5, 2005, 6:33 am
Parse::RecDescent demo_Cgrammar.pl March 14, 2006, 6:17 pm
Any modules to parse ELF files? August 7, 2007, 5:09 pm
three Parse::RecDescent related questions October 7, 2005, 1:23 pm
best module to parse / modify C-code October 7, 2005, 1:27 pm
fails to parse the soap request April 28, 2006, 7:35 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap