#!/usr/bin/perl
use strict;
use warnings;
my @array = qw[a b c];
foreach my($a,$b,$c) (@array) {
print "$a , $b , $c\n";
}
I receive following error:
Missing $ on loop variable
What is wrong?
I am using: perl v5.10.1 (*) built for x86_64-linux-thread-multi