Help for this page

Select Code to Download


  1. or download this
    $ perl -wMstrict -e 'print "foo %2.2f\% %s\n"'
    foo %2.2f% %s
    ...
    foo %2.2f\% %s
    $ perl -wMstrict -e 'printf "foo %2.2f\\% %s\n", 40.04, "bar"'
    foo 40.04\%s
    
  2. or download this
    $ perl -wMstrict -e 'print "foo %2.2f%% %s\n"'
    foo %2.2f%% %s
    $ perl -wMstrict -e 'printf "foo %2.2f%% %s\n", 40.04, "bar"'
    foo 40.04% bar