How to initialize a referenced array?

2010-09-26 Thread feltra
Hi, Am using arrays with only references in a sub-routine. While I got the hang of how to access an element of the array using the '-' operator, I do not know how to intialize this array. I.e. I want to be able to do something like @myarr=(); $#myarr = -1; inside the subroutine, but myarr

Re: How does grep command compare a hash element with an array ofhash references?

2010-09-26 Thread Dr.Ruud
On 2010-09-25 13:07, John W. Krahn wrote: Dr.Ruud wrote: On 2010-09-25 01:57, Vaishnavi Saba wrote: My query: In the code shown below, How does *grep* compare a scalar( * $seen{$_}* ) with an array of hash references ( *...@_* ). = @common = inter( \%foo, \%bar, \%joe ); sub inter {

Re: How to initialize a referenced array?

2010-09-26 Thread Shlomi Fish
On Saturday 25 September 2010 11:00:50 feltra wrote: Hi, Am using arrays with only references in a sub-routine. While I got the hang of how to access an element of the array using the '-' operator, I do not know how to intialize this array. I.e. I want to be able to do something like

Re: How to initialize a referenced array?

2010-09-26 Thread Jim Gibson
At 2:00 AM -0700 9/25/10, feltra wrote: Hi, Am using arrays with only references in a sub-routine. While I got the hang of how to access an element of the array using the '-' operator, I do not know how to intialize this array. I.e. I want to be able to do something like @myarr=();

Re: How to initialize a referenced array?

2010-09-26 Thread Shlomi Fish
On Sunday 26 September 2010 19:14:37 Jim Gibson wrote: At 2:00 AM -0700 9/25/10, feltra wrote: Hi, Am using arrays with only references in a sub-routine. While I got the hang of how to access an element of the array using the '-' operator, I do not know how to intialize this array. I.e.

Re: How to initialize a referenced array?

2010-09-26 Thread John W. Krahn
Jim Gibson wrote: At 2:00 AM -0700 9/25/10, feltra wrote: Am using arrays with only references in a sub-routine. While I got the hang of how to access an element of the array using the '-' operator, I do not know how to intialize this array. I.e. I want to be able to do something like

WWW::selenium moudle function get_all_window_names return undef

2010-09-26 Thread jyang
Hi : I have a testing project UI, and now click a hyperlink pop up new window ,so I want to operate the pop up window,I want to get the IE browser window's names or ids.But I use WWW:: selenium's function named get_all_window_names or get_all_window_ids ,they return array is null ,so I don't