in reply to Problem with an array in a package

It looks like @landscape_lgl contains a value set_paper(5), and it's unlikely you have made a method with that name in the package. So Perl will complain. The "explaination" given by diagnostics is confusing - ignore it.

Abigail

Replies are listed 'Best First'.
Re: Re: Problem with an array in a package
by jcoxen (Deacon) on Jan 14, 2004 at 16:40 UTC
    Sorry, my bad. I previewed around 6 times and STILL managed to plug in the wrong code. @landscape_lgl actually reads...
    our @landscape_lgl = ( 'set_paper(5)', 'set_landscape()', 'set_margins_LR(.50)', 'set_center()', 'set_hide_gridlines()', 'set_fit_to_pages()', );
    Line 79 doesn't just produce the error. It plain doesn't work.
      Indeed. And that's the problem. You are trying to call a method named set_paper(5), and that method doesn't exist. It's not going to call set_paper with argument 5.

      Abigail