On Fri, Jul 18, 2008 at 12:11:51AM +0800, Jeff Peng wrote:
> On Fri, Jul 18, 2008 at 12:00 AM, Richard Lee <[EMAIL PROTECTED]> wrote:
> > is there way to do this in one step?
> >
> >  push @array, ($direction, $source);
> >
> >            push @hh, [EMAIL PROTECTED]
> >
> >
> > push @hh \($direction,$source) doesn't seem to work.. or not the samething

That pushes references to the two scalars onto @hh.

> push @hh, [$direction, $source];

Doesn't quite do the same thing, unless there was the equivalent of
@array = () on the previous line.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to