Help for this page

Select Code to Download


  1. or download this
    print scalar((split('', "I am a string"))) . "\n";
    
  2. or download this
    my @chars = split '', "I am a string";
    my $num = scalar(@chars);
    print $num . "\n";