firearm12 has asked for the wisdom of the Perl Monks concerning the following question:
This seems to work fine. Now, my question is this that is this right to use this kind of invocation. Can I get problems in some other perl versions if I use this? What kind of effects does this have on the program? Is there some better way to load a particular module only if its installed on a machine?if (eval {require Digest::MD5}) { my $flcn=Digest::MD5->new(); .. .. } else { my cksum=`/usr/bin/cksum $file`; . .. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Query anout module loading
by Anonymous Monk on Apr 28, 2012 at 08:25 UTC | |
by firearm12 (Novice) on Apr 28, 2012 at 14:17 UTC | |
|
Re: Query anout module loading
by graff (Chancellor) on Apr 28, 2012 at 18:41 UTC | |
by firearm12 (Novice) on Apr 28, 2012 at 19:34 UTC |