SPUG: "Clobberation" in ($c,$d)=($d,$c)

Daniel Chetlin daniel at chetlin.com
Sun Oct 8 21:29:59 CDT 2000


During the Q&A session at the Perligata meeting, someone mentioned that
if you alias a variable and then use it on one side of a variable
switch, you get "clobberation". I was thinking about that tonight and
decided to take a look, but I couldn't reproduce it.

If memory serves, the problem was with constructs like:

  *e = \$c;
  ($c, $d) = ($d, $e);

But that seems to work fine, so I must be remembering wrong. Can someone
refresh my memory?

Thanks!

-dlc

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     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