sorry abt that could be a type mistake.. try this one..
$ perl -MFile::Find=find -MFile::Spec::Functions -lwe 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' Chaitanya On Sat, Jun 5, 2010 at 3:12 PM, newbie01 perl <newbie01.p...@gmail.com>wrote: > Hi Chaitanya, > > Thanks for your suggestion ... > > I tried it and it gives errors as below: > > > oradev> perl -MFile::Find=find -MFile::Spec::Finction -lwe | > find(wanted=>sub{print canonpath $_ if /\.pm\z/}, no_chdir=>},@INC' > ksh: syntax error: `(' unexpected > oradev> bash > bash-3.00$ perl -MFile::Find=find -MFile::Spec::Finction -lwe | > find(wanted=>sub{print canonpath $_ if /\.pm\z/}, no_chdir=>},@INC' > bash: syntax error near unexpected token `wanted=' > bash-3.00$ > > > > On Sat, Jun 5, 2010 at 6:12 PM, Chaitanya Yanamadala < > dr.virus.in...@gmail.com> wrote: > >> Try this instead >> >> $perl -MFile::Find=find -MFile::Spec::Finction -lwe | >> find(wanted=>sub{print canonpath $_ if /\.pm\z/}, no_chdir=>},@INC' >> >> >> Chaitanya >> >> >> >> >> On Sat, Jun 5, 2010 at 7:58 AM, Owen <rc...@pcug.org.au> wrote: >> >>> >>> > Hi all, >>> > >>> > I know perl -V prints what are the current modules directories that >>> > are >>> > accessible ... but is there a way to list all the available modules >>> > from >>> > each directories as well? >>> > >>> >>> >>> >>> Try this; >>> >>> >>> perldoc -q "How do I find which modules are installed on my system?" >>> -- >>> >>> >>> >>> Owen >>> >>> >>> -- >>> >>> To unsubscribe, e-mail: beginners-unsubscr...@perl.org >>> For additional commands, e-mail: beginners-h...@perl.org >>> http://learn.perl.org/ >>> >>> >>> >> >