find alone on a unix displays a help/usage message. find alone in a CMD window performs similarly.
The following on a unix is a bit weird to me at first:
$ find . -name "*.pl" | perl -ne "print qq($_) . qw(foo)" foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoof +oofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoof +oofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoof +oofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoof +oofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoof +oofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo
... time passes, nodes are read, code is crafted, head is scratched, lightbulb illuminates, reply text is angrily deleted ...
I just went through the exercise of determining why I easily replicated tphyahoo's behavior, with an incorrect dissection of the differences between -n and -p, then I finally realized the same thing sfink did...
$ perl -ne 'print "$_ foo" ' perl.txt ./.cpan/build/DateTime-0.30/tools/leap_seconds_header.pl foo./.cpan/build/DateTime-TimeZone-0.40/t/check_datetime_version.pl
Had you taken the TOP 'snippet' of output, you'd've VERY quickly seen the explanation :)
$/ = q#(\w)# ; sub sig { print scalar reverse join ' ', @_ } + sig map { s$\$/\$/$\$2\$1$g && $_ } split( ' ', ",erckha rlPe erthnoa stJu +" );
In reply to Re: Concatenation connected to find pipe behaves wierdly.
by chargrill
in thread Concatenation connected to find pipe behaves wierdly.
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |