[Boston.pm] quick XML::Twig / variable scope problem

2007-08-24 Thread Alex Brelsfoard
Hi all, I'm trying to do something I see as relatively simple. I would like to call a function that declares a few variables and then runs some XML::Twig processes which in turn access & update said original variables. But I'm getting an error from my twig functions when they try to access the bef

Re: [Boston.pm] quick XML::Twig / variable scope problem

2007-08-24 Thread Jeremy Muhlich
On Fri, 2007-08-24 at 19:32 -0400, Alex Brelsfoard wrote: > sub main { > my $catalog_timestamp; ... > sub get_catalog_timestamp { ... > $catalog_timestamp = $elt->att('PublishTimestamp'); > "Global symbol "$catalog_timestamp" requires explicit package name" Yep. You can get away wi