[pm-h] madness, genius or confusion?

Bryan Rivera brivera001 at gmail.com
Wed Mar 14 08:44:13 PDT 2012


Has anyone ever seen something like the code snippet below? I came
across this and figured I was just missing something. Why would you
want to 'use lib' inside an eval inside a BEGIN block? I think it's
all kinds of wrong.

BEGIN {
    eval "{ use lib '/usr/prod/xxx/xxx/perl/lib/'; }";
}

-Bry


More information about the Houston mailing list