The List Separator Variable : range « Array « Perl






The List Separator Variable

    


#!/usr/local/bin/perl

(@array) = (1..5, "A", "B", "C");

print STDOUT "@array\n\n";
print STDOUT "The behavior of array printing without quotes.\n";
print STDOUT @array;
print "\n\n";

   
    
    
    
  








Related examples in the same category

1.Create array with range operator