Help for this page

Select Code to Download


  1. or download this
    if ($string =~ m!^(\w{4})$!) {
        $string =~ tr/[a-z]/[A-Z]/;
        # or $string = uc $string;
    ...
        } else  {
        # do some error
    }
    
  2. or download this
    if ($string =~ s!^(\w{4})$!uc($1)!e) {
        
        # do something
    ...
        # do some error
        # print "Location: $error_url"
    }