Re: [Perl-unix-users] passing array references: to normal and anonymous array's, between functions

2004-07-23 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: > This is a code snippet from my program the prints a fixed set of column headings and > seperators for an array retrieved from a database. The final output for this example > should be: > > USER SID,SERIAL LOGON TIME MODULE ACTION >

[Perl-unix-users] passing array references: to normal and anonymous array's, between functions

2004-07-23 Thread listmail
This is a code snippet from my program the prints a fixed set of column headings and seperators for an array retrieved from a database. The final output for this example should be: USER SID,SERIAL LOGON TIME MODULE ACTION ~~ ~~ ~

RE: [Perl-unix-users] Problems with GZipped Files...

2004-07-23 Thread Thomas, Mark - BLS CTR
> I am having a lot of trouble writing a script to search > through the contents of a list of zipped files. I have > numerous files which are zipped using gzip, and I do not have > the permissions to unzip them. I can, however, "less" the > file and view its contents That makes no sense. If

[Perl-unix-users] Problems with GZipped Files...

2004-07-23 Thread Kenny Evans
Hello Fellow Experts: I am having a lot of trouble writing a script to search through the contents of a list of zipped files. I have numerous files which are zipped using gzip, and I do not have the permissions to unzip them. I can, however, "less" the file and view its contents as such:

Re: [Perl-unix-users] Urgent: Local time scalar conversion

2004-07-23 Thread Craig Sharp
sprintf did the trick! Thanks to all who responded. >>> "Craig Sharp" <[EMAIL PROTECTED]> 07/23/04 10:57AM >>> I need to get 2 digit time and date in a scalar when there is only 1 digit. Eg: Using printf with %02d, I am able to get 05 to print at 5 min past the hour. printf("%02d",$Minute) I

Re: [Perl-unix-users] Urgent: Local time scalar conversion

2004-07-23 Thread Todd J Pardi
Hi Craig, I'm not sure if this is what your trying to do but this has worked for me. my ($mday, $mon, $year) = (localtime)[3..5]; #++$mon; #for those people that don't count months starting with 0 $year = sprintf("%02d", $year % 100); my %calnames = (    0 =>'Jan' ,   1=>'Feb',                  

Re: [Perl-unix-users] Urgent: Local time scalar conversion

2004-07-23 Thread Jeff D
Try sprintf Just add an 's' in front of your printf and you should be square. --- Craig Sharp <[EMAIL PROTECTED]> wrote: > I need to get 2 digit time and date in a scalar > when there is only 1 digit. > > Eg: Using printf with %02d, I am able to get 05 to > print at 5 min past the hour. > >

[Perl-unix-users] Urgent: Local time scalar conversion

2004-07-23 Thread Craig Sharp
I need to get 2 digit time and date in a scalar when there is only 1 digit. Eg: Using printf with %02d, I am able to get 05 to print at 5 min past the hour. printf("%02d",$Minute) I need to assign this output to a scalar variable so that I can use it as part of a filename later in the code.