Help for this page

Select Code to Download


  1. or download this
    # the "variable library", e.g. MyVars.pm
    
    ...
    @array = qw(Foo Bar);
    %hash = (Foo => "Bar");
    1;
    
  2. or download this
    #!/usr/bin/perl -l
    use strict;
    ...
    print $scalar;
    print "@array";
    print "$_ => $hash{$_}" for keys %hash;