Help for this page

Select Code to Download


  1. or download this
    $ cat test.pl
    #!/usr/bin/perl
    ...
     ------------------------------------------------------------
     s{0}{1}r
     ------------------------------------------------------------
    
  2. or download this
    $ perlver-fast test.pl
    test.pl: 5.010
    
  3. or download this
    #!/usr/bin/env perl
    use strict;
    ...
            printf "%-10s %s\n", $pv, $_ for @$m;
            }
        }
    
  4. or download this
    $ perlver-fast -e '$a //= 4'
    -e: 5.010 / 5.010
    
  5. or download this
    $ perlver-fast -ve '$a //= 4; package foo 0.04 { 1; }'
    -e: 5.014 / 5.014
    5.010      //= operator
    5.012      package NAME VERSION
    5.014      package NAME VERSION BLOCK
    
  6. or download this
    $ perlver-fast -ve '$a = "fo" =~ s{f\K}{o}r'
    -e: 5.006 / 5.006