Re: comparing arrays

2012-01-12 Thread Jim Gibson
At 11:01 PM -0600 1/12/12, Chris Stinemetz wrote: > Define an array with the headers you expect: my @headers = ( '>csno', 'rfpi', 'vrp0', ... ); Use that array for your keys instead of the @header array. To avoid warnings of uninitialized values for missing values, print the expression

Re: comparing arrays

2012-01-12 Thread Chris Stinemetz
> > Define an array with the headers you expect: > > my @headers = ( '>csno', 'rfpi', 'vrp0', ... ); > > Use that array for your keys instead of the @header array. > > To avoid warnings of uninitialized values for missing values, print the > expression (defined $data{$key} ? $data{$key} : '' ) inst

Re: comparing arrays

2012-01-12 Thread Jim Gibson
On 1/12/12 Thu Jan 12, 2012 2:03 PM, "Chris Stinemetz" scribbled: > Any advice on how to maintain the order of elements in the @header > array and print the value to the right of the "=" sign for each > dataset, and if there is a value in the dataset that doesn't match the > element in the @hea

Re: comparing arrays

2012-01-12 Thread Chris Stinemetz
Thank you Jim. That got me over that hurdel! Any advice on how to maintain the order of elements in the @header array and print the value to the right of the "=" sign for each dataset, and if there is a value in the dataset that doesn't match the element in the @header simply leave the value blank

Re: comparing arrays

2012-01-12 Thread Jim Gibson
On 1/12/12 Thu Jan 12, 2012 1:07 PM, "Chris Stinemetz" scribbled: > Thanks for your advice Jim. > > Although it makes very good sense to me, I am having a little > difficult implementing it. I will have to admit referencing is still a > bit foreign to me. > > I am getting the following error

Re: comparing arrays

2012-01-12 Thread Chris Stinemetz
Thanks for your advice Jim. Although it makes very good sense to me, I am having a little difficult implementing it. I will have to admit referencing is still a bit foreign to me. I am getting the following error and I am not sure how to fix it. Type of arg 1 to push must be array (not reference

RE: Implementation of sFTP using Perl

2012-01-12 Thread Wagner, David --- Sr Programmer Analyst --- CFS
From: Spectroman [mailto:spectro...@yahoo.com] Sent: Thursday, January 12, 2012 11:51 To: Wagner, David --- Sr Programmer Analyst --- CFS Subject: Re: Implementation of sFTP using Perl Hi David, Never really used, but seems quite straightforward, as stated in the synopsis: use Net::SFTP;

RE: Implementation of sFTP using Perl

2012-01-12 Thread Wagner, David --- Sr Programmer Analyst --- CFS
From: Spectroman [mailto:spectro...@yahoo.com] Sent: Thursday, January 12, 2012 10:33 To: Wagner, David --- Sr Programmer Analyst --- CFS Subject: Re: Implementation of sFTP using Perl http://search.cpan.org/dist/Net-SFTP/ So have you used Net-SFTP? I have looked through cpan, but looki

Implementation of sFTP using Perl

2012-01-12 Thread Wagner, David --- Sr Programmer Analyst --- CFS
I need to change from FTP to sFTP and want to use a Perl implementation verses using sFTP application bound within Perl scripts. I will be running from Linux and pulling data either from MVS or Windows box or servers. Uncertain how to proceed? Will attempt to use A

Re: perl DBI n00b

2012-01-12 Thread Mark Haney
On 01/11/2012 09:58 AM, Mark Haney wrote: I'm pretty new to the perl DBI world, so can someone point me to a good tutorial/reference site or book or something? I'm very proficient with databases and pretty good with basic perl, but not used together. Any help would be appreciated. I really

Re: working with large integers

2012-01-12 Thread timothy adigun
Hi David, On Wed, Jan 11, 2012 at 8:30 PM, Kronheim, David (Contr) < david.kronh...@ftr.com> wrote: > Hi Tim: > > I don't trust picking off the first or last 10 digits, without using > BigInt. Without BigInt, Perl will give a sum with your code but, the digits > in the answer will be > different.