1 |
PERL may be run interactively from the command line. For example,
|
2 |
will report the version of PERL in use.
|
3 |
The PERL command
-
% perl -e 'print "@INC\n";'
|
4 |
prints the search path for included files.
|
5 |
The command
-
% perl -MLWP -e 'print "libwww-perl-$LWP::VERSION\n";'
|
6 |
prints the installed version of LWP.
|
7 |
The complex PERL command
-
% perl -pi.bak -e 's/str1/str2/gi' `find . -name \*.html -print`
|
8 |
performs a case insensitive, global search-and-replace on all files ending with "html" in the current directory and all its subdirectories.
|