Help for this page

Select Code to Download


  1. or download this
    use strict; 
    
    my $string = 'hello world'; 
    print substr($string,'O',5)."\n";
    
  2. or download this
    perl absurd.pl
    hello
    
  3. or download this
    use strict; 
    use warnings;
    
    my $string = 'hello world'; 
    print substr($string,'O',5)."\n";
    
  4. or download this
    perl absurd.pl
    Argument "O" isn't numeric in substr at absurd.pl line 4.
    hello