On 2008-08-07 16:48:24 +0200, Ralf Wildenhues wrote: > > The following would be cleaner and completely local (so, no risks > > of side effects): > > > > require File::Copy; > > File::Copy::move (...
Well, not completely local, because once the require has been evaluated, its effects remain, but without the "import", you can't use "move" alone. In fact, the main advantage of this solution is to be able to use it in an eval, so that it is not fatal; and if the require is never evaluated, the module isn't needed (and at the same occasion, this should then be faster). For instance, File::Copy isn't available with perl 5.6.1 on the Zaurus (though the user may install his own copy). > Is this also just as portable to older perl versions? It works at least with perl 5.005_03 (1999). I don't have working earlier versions. -- Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

