Hi there:

For "use", you can do this:

perl -MModule -e 'my @files'

Which is equivalent to a program:
use Module;
my @files;

You can add other statements to your -e parameter as well; just
separate them with semicolons.

Hope this helps,

Jonathan

On Sun, Nov 2, 2008 at 4:17 AM, Stephen Liu <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
>
> About "use" and "my" functions, can I run it inside cpan?  I can't run
> them on console, no command found.
>
> e.g.
> use File::Find;
> my @files;
>
> etc.
>
>
> Or I have to create a perl script running them inside?  TIA
>
>
> B.R.
> Stephen L
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>

Reply via email to