I didn't see any scoping being done on any of your variables and I have no sense of what order you are calling the subs. My gut feeling is that $id is not defined when you are trying to print it.
You could try invoking the following from the main body of your program:
If I make the guess (rightfully I hope) that the sub get_file_name() is being called before the sub poem_page() then $id will have been set and will be considered "global" for a lack of better term and its value seen by poem_page();use vars qw @ $id @; my $id="";
Peter @ Berghold . Net
Sieze the cow! Bite the day!
Nobody expects the Perl inquisition!
Test the code? We don't need to test no stinkin' code!
All code posted here is as is where is unless otherwise stated.
Brewer of Belgian style Ales
In reply to Re: Re: Re: Just a simple task
by blue_cowdawg
in thread Just a simple task
by Migey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |