Path: utzoo!censor!geac!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!uunet!brunix!jsb From: jsb@cs.brown.edu (John Bazik) Newsgroups: comp.lang.perl Subject: using vec Message-ID: <66526@brunix.UUCP> Date: 27 Feb 91 19:28:29 GMT Sender: news@brunix.UUCP Reply-To: jsb@cs.brown.edu (John Bazik) Organization: Brown University Department of Computer Science Lines: 21 A quick question on the use of vec: given the following script: $i = $j = $k = 0; vec($i, 2, 1) = 1; vec($j, 3, 1) = 1; vec($k, 4, 1) = 1; print "i $i j $j k $k\n"; I get the following results: i 4 j 8 k 0 How come k isn't 16? Are vectors supposed to make sense when used this way? I'm at pl41. John Bazik jsb@cs.brown.edu