Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how add a variable in a table

Status
Not open for further replies.

PasPy

Programmer
May 16, 2002
11
CA
how to add a $variable in a @table

@did = (1,2,3);
$variable = 4;

#the code to have @did = (1,2,3,4)

???


Thank to post
 
@table = (1,2,3);
$variable = 4;

push @table, $variable;

- Rieekan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top