Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl 
    use strict;
    ...
    mysub ($scalar);
    
    mysub (qw(This is a list));
    
  2. or download this
    Type of arg 1 to main::mysub must be array (not reference constructor)
    + at C:\gash.pl line 15, near "@array)"
    Type of arg 1 to main::mysub must be array (not reference constructor)
    + at C:\gash.pl line 16, near "%hash)"
    ...
    Type of arg 1 to main::mysub must be array (not private variable) at C
    +:\gash.pl line 21, near "$scalar)"
    Type of arg 1 to main::mysub must be array (not list) at C:\gash.pl li
    +ne 23, near "qw(This is a list))"
    Execution of C:\gash.pl aborted due to compilation errors.