"Chas. Owens" <[EMAIL PROTECTED]> writes:

> use strict;
> use warnings;
>
> use File::Find;
> use File::MMagic;
>
> my $flag = shift;
>
> checkfile($flag);

ChasO, I'm curious about something here.  I noticed you put:
  use File::Find;
  use File::MMagic;

Before the checkfile() call.

In the actual working script where checkfile() will be only a minor
part it is likely to be used infrequently. 

The rest of the script finds a regex in known places with file
addresses supplied in the main body.  That is the main purpose of the
script.

checkfile() would only be invoked by the user (by supplying one extra
command line ARGV) on rare occasions. 

I wondered if having 

  use File::Find;
  use File::MMagic;
 (which are only needed for checkfile()

in the main body of the script would cause any kind of extra memory
usage, or some other thing to slow down or otherwise effect the
running of the main script when `checkfile()' is not invoked from the
command line.




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to