[ale] perl inquiry

Jim Kinney jim.kinney at gmail.com
Wed Jun 1 23:24:04 EDT 2011


last_table=$#tables
$((last_table++))
${tables[$last_table]}}='table3'

if you like scaring people using bash with arrays :-)  Most scripting
languages will allow you to simple append with an assignment. Compiled C may
depending on how it's defined.

On Wed, Jun 1, 2011 at 8:54 AM, Geoffrey Myers
<lists at serioustechnology.com>wrote:

> I have the following constuct:
>
> %hash = ($db => { transaction => 1,
>                        locked => 1,
>                        tables => ["table1", "table2"]
>        }
> );
>
> How do I add additional tables to the tables array?
>
> --
> Until later, Geoffrey
>
> "I predict future happiness for America if they can prevent
> the government from wasting the labors of the people under
> the pretense of taking care of them."
> - Thomas Jefferson
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



-- 
-- 
James P. Kinney III

As long as the general population is passive, apathetic, diverted to
consumerism or hatred of the vulnerable, then the powerful can do as they
please, and those who survive will be left to contemplate the outcome.
- *2011 Noam Chomsky*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20110601/c1480f3e/attachment.html 


More information about the Ale mailing list