Help for this page

Select Code to Download


  1. or download this
    Variable Scopes:
    my only "local" not assigned outside the "loop" e.g.
    ...
    while (){
    $var1 = 0
    }
    
  2. or download this
    perldoc perlintro
    perldoc perltoc
    perldoc perlfaq[1-x]
    quote delimiter(s), \, $, and @,
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    foreach $elem (@words){
      print "$elem\n";
    }
    
  4. or download this
    #!/usr/bin/perl -w
    #We use warnings
    ...
     if ($mod == 1){ printf "$i is odd, modulus is $mod \n";
    }
    }
    
  5. or download this
    #!/usr/bin/perl
    
    ...
    [id://563314]