Help for this page

Select Code to Download


  1. or download this
     
    my $var=3;
    mysleep($var); # these two lines are fine
    ...
               sleep($_[0]);
               $_[0]=10;
    }
    
  2. or download this
    $y=substr("hello",10,1); 
    foo($y);# this runs, but substr() generates warnings because the subst
    +r() is outside the string
    
    foo( substr("hello",10,1) ); # this is a fatal error!