Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

About the use of the plural form for the name of variables

by grondilu (Friar)
on Nov 08, 2012 at 11:53 UTC ( #1002881=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @friend = qw(john steve carl);
    for my $friend (@friend) {
        say "Hello, $friend!";
    }
    
  2. or download this
    my @friends = qw(john steve carl);
    for my $friend (@friends) {
        say "Hello, $friend!";
    }