I am new to Perl. I wrote a snippet to access the elements of the array and printed it on 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 does the second seal deduce this?
3pdf
I need to get an output like
20020701 00000Sending Mail in PerlPhilip Yusonpdf
I do not know why he gives 3pdf, I pressed to get out of this. Any help is appreciated.
source
share