I am using Perl in Ubuntu. I have assigned few values to an array and when I am printing the array it is giving some HASH values.
Can anybody assist me with this?
Here is the code.
#!/usr/bin/perl
my $VAR="you are welcome";
my @arr={'1','2','3','4'};
print @arr;
print $VAR."\n";
print "$$ \n";
Here is the output
HASH(0x140cd80)you are welcome
12548
{}indicates a hashref. Usemy @arr=('1','2','3','4');and everything should work as expected.