TOPIC: PHP for command line scripts

David A. Sinck plug-devel@lists.PLUG.phoenix.az.us
Mon Dec 2 13:04:02 2002


\_ SMTP quoth der.hans on 12/1/2002 23:44 as having spake thusly:
\_
\_ PHP does have one feature not available in Perl that just rocks, though.
\_ That's the inline scripting capabilities. In other words, it's possible to
\_ embed PHP into a normal text file. For "everything is a file" *NIX this is
\_ an outstanding capability that makes PHP stand apart from the pack.

FWIW, I'd be willing to bet that if you typed in an extra arg to perl
invocation you could get that feature too.

perl -MInline::Something arbitrary.txt

David