Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    if (length $str == 30) {
        print "\$str has length of 30\n";
    }
    
  2. or download this
    print $str =~ /(.{30})/;