Help for this page

Select Code to Download


  1. or download this
    perl -e"$_='1234567890';print 'x' x length substr($_,0,-4), substr($_,
    +-4)"
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my $string = '1234567890';
    my $new_string = ( 'x' x length substr($string, 0, -4) ) . substr($str
    +ing, -4);
    print $new_string;