I found a site suggesting this type of command formating ... I tried it within a single line script with strict and warnings. It generated this error ...
One way to get an idea of what a command line "one-liner" would have to look like as a script is to deparse the command line source together with the interpreter switches:
c:\@Work\Perl>perl -MO=Deparse -n -e
"chomp; printf qq{%sUF,A,Y,9,U\n}, $_
"
LINE: while (defined($_ = <ARGV>)) {
chomp $_;
printf "%sUF,A,Y,9,U\n", $_;
}
-e syntax OK
Please see
O and
B::Deparse.
(Update: Please also see perlrun for a discussion of the wrappers the interpreter puts around code when it sees switches like -n and -p.)
Give a man a fish: <%-{-{-{-<