Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
     use 5.10.1;
    ...
    @wt = (1,2,3,4);
    
    print $wt[2];
    
  2. or download this
     perl pArray.plx </p> and hit enter, I get the the following error mes
    +sage:
    <code> C:\strawberry\perl\programs>perl pArray.plx
    Global symbol "@wt" requires explicit package name at pArray.plx line 
    +6.
    Global symbol "@wt" requires explicit package name at pArray.plx line 
    +8.
    Execution of pArray.plx aborted due to compilation errors.