Exposing my ignorance, wanting help with use!

Uri Guttman uri at stemsystems.com
Wed Feb 14 18:18:05 GMT 2007


>>>>> "ML" == Matt Lawrence <matt.lawrence at virgin.net> writes:

  ML> Uri Guttman wrote:
  >>>>>>> "DIM" == Dagfinn Ilmari Mannsåker <ilmari at ilmari.org> writes:
  >>>>>>> 
  >> 
  DIM> But UNIVERSAL::require gives you a universal ->require() method that
  DIM> works on strings, so you can do it like this:
  >> 
  >> i can't find this in the docs for UNIVERSAL.
  >> 
  >> perl -e 'Foo->require( "strict" )'
  >> Can't locate object method "require" via package "Foo" (perhaps you forgot to load "Foo"?) at -e line 1.
  >> 
  >> 
  ML> You have to install UNIVERSAL::require first:

  ML> http://search.cpan.org/~mschwern/UNIVERSAL-require-0.11/

  ML> :)

well, as ilmari said he should have said it was a cpan and not core
module. :)

the eval string method is good enough for this IMO.

uri

-- 
Uri Guttman  ------  uri at stemsystems.com  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org



More information about the london.pm mailing list