Jenda Krynicky wrote: > From: Michael Pastore <[EMAIL PROTECTED]> >> Tim/Rob/All, >> >> Being a Perl nubie....and not having alot of experience in installing >> and using Perl modules...I decided to go the route of using the >> system function.. >> >> I took a look at CPAN and what was involved in installing the module >> and using it (was confused)...looked pretty involved..at least for >> me, rather than just putting: >> >> system ('copy d:\server\vsiwork\*.tag d:\server\vsiout'); >> >> in the code... > > While this may be a valid reason not to use a module it's not > applicable to File::Copy. > The module is part of the core, you already have it! Just like > anybody else.
This is why we were asking, Mike. Its extremely common for people to decide on a solution to their problem and ask questions here about how that solution can be implemented. Solving a problem in a given language requires the ability to think in that language's idioms. Especially if you are new to Perl it's appropriate to give a rundown of the problem you're trying to solve as well as your chosen solution. By the way, if you're using ActivePerl (perl -V will tell you) it's very easy to install pre-built modules with the ppm utility. Just ppm install File::Copy would have done it if it wasn't already installed. It might be a good idea, now that you have a working program, to re-implement it using the module. That way it won't be so scary next time. Cheers, and well done, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]