SPUG: Maledictus Referentia

El JoPe Magnifico jope-spug at jope.net
Tue Jun 12 18:00:04 CDT 2001


Note that what you're doing here is copying the blessed hash,
rather than un-blessing it.  Not sure whether that makes a
difference for your purposes.

I seem to remember Brian Ingerson having figured out (or maybe he
was still plotting) a "curse" equivalent to the "bless" function,
to remove the object typing from a variable.  Alas, I'd had a
couple beers by that the time, so it's all a bit fuzzy... =)
  -jp

>   Does anyone know a more elegant way than
>       $profane = {%$sacred};
>   to get an 'un-blessed' hashref from a blessed one?


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





More information about the spug-list mailing list