Re: anonymous array for loop

2013-03-09 Thread Brandon McCaig
On Sat, Mar 09, 2013 at 08:19:43PM -0600, Chris Stinemetz wrote: > I don't think that is true. > > Example being: > > #!/usr/bin/perl > use warnings; > use strict; > > use Data::Dumper; > > my $firstVar = "One"; > my $secondVar = "Two"; > > my @array; > push @array,[$firstVar, $secondVar]; >

Re: anonymous array for loop

2013-03-09 Thread Chris Stinemetz
On Sat, Mar 9, 2013 at 2:57 PM, Brandon McCaig wrote: > On Sat, Mar 09, 2013 at 07:24:37AM -0600, Chris Stinemetz wrote: > > Each anonymous array @files and @newFiles has 5 total elements. > > Just to nitpick, @files and @newFiles are not anonymous arrays. > They are just arrays. They have names.

Re: Running into dependency hell with Cygwin when trying to install Excel-Writer-XLSX-0.65 and have all tests pass and not skipped

2013-03-09 Thread Brandon McCaig
On Fri, Mar 08, 2013 at 05:25:53PM -0800, Jim Gibson wrote: > > So what's the best Perl module that recursively installs all > > prerequisites of a package for you, jsut supplying the > > desired package name for installation? > > The CPAN module is want you want. It installs the prerequisites > o

Re: anonymous array for loop

2013-03-09 Thread Brandon McCaig
On Sat, Mar 09, 2013 at 07:24:37AM -0600, Chris Stinemetz wrote: > Each anonymous array @files and @newFiles has 5 total elements. Just to nitpick, @files and @newFiles are not anonymous arrays. They are just arrays. They have names. You cannot have anonymous arrays in Perl except by reference. Th

Re: anonymous array for loop

2013-03-09 Thread *Shaji Kalidasan*
Chris, May I ask you to show the sample data of the array '@files' and '@newFiles', I presume the array looks like this my @files    = (                 ["/storage/pcmd/2013-03-09.06:17.-0700.MMEpcmd.gz"],                 ["/storage/pcmd/2013-03-09.06:22.-0700.MMEpcmd.gz"],                 ["/st

Re: anonymous array for loop

2013-03-09 Thread Chris Stinemetz
Never mind, I got it. I was over thinking it. I just created one anonymous array with the elements I wanted then used the following loop. foreach my $file (@files) { print join( "\t", @$file[0], @$file[1] ), "\n"; $ftp->put(@$file[0], @$file[1]) || die "can't put files: @$file[0] \t @$file[1

anonymous array for loop

2013-03-09 Thread Chris Stinemetz
Thank you in advance. Each anonymous array @files and @newFiles has 5 total elements. How can I alter this nested for so that just the unique elements are printed instead of each element twice? foreach my $file (@files) { foreach my $newFileName ( @newFiles ) { print join( "\t", @$file, @$ne

Re: Problem with Active Perl PPM on Windows

2013-03-09 Thread *Shaji Kalidasan*
Jim, Thank you so much. As per your kind inputs, I enabled the Active State's PPM repository in the preferences tab. Now it is working like a champ. best, Shaji --- Your talent is God's gift to you. What you do with i