I am new to Perl. I wrote a snippet to access array elements and print it to the console:
use strict;
use warnings;
my @array1 = ('20020701 00000', 'Sending Mail in Perl', 'Philip Yuson');
my @array2 = ('20020601', 'Manipulating Dates in Perl', 'Philip Yuson');
my @array3 = ('20020501', 'GUI Application for CVS', 'Philip Yuson');
my @main = (\@array1, \@array2, \@array3);
my $a = $main[0];
print @$a;
print @$a . "pdf";
First print:
20020701 00000Sending Mail in PerlPhilip Yuson
But why second print outputs this?
3pdf
I need to get the output like
20020701 00000Sending Mail in PerlPhilip Yusonpdf
I don't know why it is giving 3pdf
i am pressed get out of this. Any Help is greatly appreciated.