In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Walter 
Valenti) wrote:

[original citation missing]

> > How do I insert $scalar into position $x of @array, where $x is smaller than
> > $#array?

> $array[$x]=$scalar;

this replaces whatever was at index $x.  to insert something
you need to use splice.

    http://www.perldoc.com/perl5.6.1/pod/func/splice.html
-- 
brian d foy <[EMAIL PROTECTED]> - Perl services for hire
CGI Meta FAQ - http://www.perl.org/CGI_MetaFAQ.html
Troubleshooting CGI scripts - http://www.perl.org/troubleshooting_CGI.html

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to