Re: enumerating subarrays

2009-04-06 Thread Jim Gibson
On 4/4/09 Sat Apr 4, 2009 8:34 PM, "Andrew Fithian" scribbled: > What's a slick way to enumerate all subarrays of length n from a master > array of length m? For example I've been enumerating all possible two > card hands from a deck of 52 cards (n=2, m<=52) using nested for loops: > for ( $i =

Re: perl script to check whether software is installed

2009-04-06 Thread Erez Schatz
On 4/6/2009 16:18, Telemachus wrote: On Mon Apr 06 2009 @ 2:44, Irfan Sayed wrote: please adivce / help Regards Irfan Please don't reply to your own mail as a way of nudging people to reply. It's more likely to annoy than to get you an answer. also: http://www.perlmonks.net/?node_id=75567

Re: perl script to check whether software is installed

2009-04-06 Thread Telemachus
On Mon Apr 06 2009 @ 2:44, Irfan Sayed wrote: > please adivce / help > > Regards > Irfan Please don't reply to your own mail as a way of nudging people to reply. It's more likely to annoy than to get you an answer. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional comman

Re: Using array from subroutine - Thanks

2009-04-06 Thread Thomas H. George
On Sun, Apr 05, 2009 at 08:53:43AM -0700, John W. Krahn wrote: > Thomas H. George wrote: >> In order to call them from menubuttons I moved my code into subroutines. >> >> sub open_file { >> if ( ! open NEWFILE, "<$file") { >> die "Could Not Open $file: $!" >> } else { >>

Re: perl script to check whether software is installed

2009-04-06 Thread Irfan Sayed
please adivce / help Regards Irfan From: Irfan Sayed To: beginners@perl.org Sent: Monday, April 6, 2009 2:49:40 PM Subject: perl script to check whether software is installed Hi All, i want to check whether a particular software is installed or not through pe

perl script to check whether software is installed

2009-04-06 Thread Irfan Sayed
Hi All, i want to check whether a particular software is installed or not through perl script. if it is installed then uninstall that software and start installation freshly. if it is not installed then start the installation. I have following option to check 1: read the reqister and search fo

RE: Using array from subroutine

2009-04-06 Thread Ajay Kumar
It's good for the beginners -Original Message- From: John W. Krahn [mailto:jwkr...@shaw.ca] Sent: Sunday, April 05, 2009 9:24 PM To: Perl Beginners Subject: Re: Using array from subroutine Thomas H. George wrote: > In order to call them from menubuttons I moved my code into subroutines. >