None wrote:
> > Then you copy and pasted wrong. Because when I copy and paste the
> > above into a new file, and run that file, the output I get is:
> > HELLO
> > WORLD
> > BYE
>
>
> I copied and pasted the same code in a new file as well, but I am not
> getting any output from the execution. I am not able to get if there
> any problem with the version of perl, or a problem with the program!
>
> perl --version:
> This is perl, v5.6.1 built for i686-linux....
Interesting. I get no output with Perl v.5.6.1 as well, using module
version 0.59. However, with Perl v5.8.4 and Class::Struct version
0.63, I get the desired output.
My first and obvious recommendation is that you upgrade. If that's not
feasable for you, consult the documentation for the version of
Class::Struct on your system, and see if there are any differences
between that and the documentation found at:
http://search.cpan.org/~nwclark/perl...lass/Struct.pm
Sorry I can't be of more help . . .
Paul Lalli