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:
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.)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
Give a man a fish: <%-{-{-{-<
In reply to Re: Appending string to all lines
by AnomalousMonk
in thread Appending string to all lines
by bentrim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |