<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><SPAN
class=750093321-25012006><FONT face=Arial color=#0000ff
size=2>Chuck,</FONT></SPAN></DIV>
<DIV><SPAN class=750093321-25012006><FONT face=Arial><FONT color=#0000ff
size=2> What you're doing here is setting $lc_table to be a
refrence to an anonymous array, rather than using the name in $lc_table to
determine where the data goes.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=750093321-25012006><FONT face=Arial><FONT color=#0000ff
size=2> You could use an eval:</FONT></FONT></SPAN></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=750093321-25012006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></FONT></FONT></FONT> </DIV>
<DIV><SPAN class=750093321-25012006><FONT face=Arial><FONT size=2><FONT
color=#0000ff>eval("<SPAN class=141583319-25012006>push \@$lc_table, \"rep bla
bla bla bla bla\";");</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=750093321-25012006><FONT face=Arial color=#0000ff size=2><FONT
color=#000000><SPAN
class=141583319-25012006></SPAN></FONT></FONT></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=750093321-25012006><FONT face=Arial color=#0000ff size=2><FONT
color=#000000><SPAN
class=141583319-25012006></SPAN></FONT></FONT></SPAN></FONT></FONT></FONT> </DIV>
<DIV><SPAN class=750093321-25012006><FONT face=Arial color=#0000ff
size=2> Note: Someone's going to bitch about the parens not
doing anything, but they make it easier for me to read, so there!
:)</FONT></SPAN></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=750093321-25012006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></FONT></FONT></FONT> </DIV>
<DIV><SPAN class=750093321-25012006><FONT face=Arial color=#0000ff
size=2>Thanks,<BR>Peter Darley</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> spug-list-bounces@pm.org
[mailto:spug-list-bounces@pm.org]<B>On Behalf Of </B>Orr, Chuck
(NOC)<BR><B>Sent:</B> Wednesday, January 25, 2006 12:50 PM<BR><B>To:</B>
spug-list@pm.org<BR><B>Subject:</B> SPUG: Symbolic references
???<BR><BR></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2><BR><BR></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=141583319-25012006>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=141583319-25012006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=141583319-25012006>I have
a group of 5 arrays, named as follows:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=141583319-25012006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=141583319-25012006>my
@ofcrte;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=141583319-25012006>my
@pxrte;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=141583319-25012006>my
@acrte;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=141583319-25012006>my
@farte;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=141583319-25012006>my
@ftrte;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=141583319-25012006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=141583319-25012006>I would like to
push something on to one of them per iteration of a loop, the pushee
determined by a variable named $lc_table.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=141583319-25012006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=141583319-25012006>If I read pgs 16
& 17 of the leopard (advanced perl programming) correctly, I
should be able to use a symbolic reference to push to the appropriate array
depending on the contents of the $lc_table variable. I have turned
strict refs off within the loop.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=141583319-25012006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=141583319-25012006>here is my push
line:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=141583319-25012006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=141583319-25012006>push @$lc_table,
"rep bla bla bla bla bla";</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=141583319-25012006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=141583319-25012006>when I then print
the above listed arrays, they have nothing in them. <SPAN
class=136264820-25012006><FONT color=#0000ff> However, if I print
"@$lc_table"; within the loop, there are elements in the
array. </FONT></SPAN> Any suggestions?<BR><BR>If anyone can help me and
has time to look at a little more code, I would be glad to send
it.<BR><BR>Thanks for your help,<BR>Chuck Orr</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=141583319-25012006>chuck.orr@cingular.com</SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>