>>>>> "BT" == Ben Tilly <[EMAIL PROTECTED]> writes:

  BT> If you didn't remember the do local trick, you could always use Symbol
  BT> and then call gensym to get your typeglob.

i have used Symbol::gensym for years and it is fine for this. it comes
with perl5 from way back before 5.6 (not sure how old it is). in fact i
still use it in some modules as i want them to be backward compatible
with older perls.

  BT> As for passing old-style filehandles, both of the following syntaxes
  BT> are likely to work:

  BT>   call_function(*FILEHANDLE);
  BT>   call_function(\*FILEHANDLE);

i prefer the ref version but inside the called sub it won't make a
difference and the code will mostly be the same.

but there is one difference which is whether you can do OO calls on the
handle. you may need to load IO::Handle (or one of its many subclasses)
to get that support.

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to