Thursday, July 24, 2008

PERL - How to use %INC & @INC on command line

perl -e 'use XML::Simple;use XML::Parser; foreach my $tuni (keys %INC){print $tuni . "\t" . $INC{$tuni} . "\n"}'

perl -e 'print "@INC\n"'

Multiple -e can be used, just like shell's sed program.

No comments: