At 03:05 PM 3/30/07 +0100, Rob Dixon wrote:
>Karyn Williams wrote:
>>
>> I have a sh script as follows. The script worked OK until the year rolled
>> over. My (now deleted) simple sh way of figuring the month and year blew
>> up. I decided to rewrite the script in perl because of the date/time
>> f
Karyn Williams wrote:
I have a sh script as follows. The script worked OK until the year rolled
over. My (now deleted) simple sh way of figuring the month and year blew
up. I decided to rewrite the script in perl because of the date/time
functions. It takes multiple commandline args (usernames)
Karyn Williams am Donnerstag, 29. März 2007 20:27:
[snip]
> It varies greatly. Often one or two. Sometimes 70. The size of the files is
> fairly substantial:
>
> -rw-r--r-- 1 root other249595095 Sep 1 2006 maillog.200608
>
> I am getting Out of memory errors while running the script.
[
At 09:48 AM 3/29/07 -0700, Wagner, David --- Senior Programmer Analyst ---
WGO wrote:
>> -Original Message-
>> From: Karyn Williams [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 28, 2007 17:54
>> To: beginners@perl.org
>> Subject: RE: Exiting loops
&g
> -Original Message-
> From: Karyn Williams [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 28, 2007 17:54
> To: beginners@perl.org
> Subject: RE: Exiting loops
>
> At 04:10 PM 3/28/07 -0700, Wagner, David --- Senior
> Programmer Analyst ---
> WGO wrote:
&g
Karyn Williams schreef:
> #!/usr/bin/perl -w
Make that:
#!/usr/bin/perl
use strict;
use warnings;
> my $a = 1;
> while ($a < 7) {
Alternative:
foreach my $a (1..7) {
> if ($ext_mon <= 9) {
> $ext = $ext_year . '0' . $ext_mon;
> }
> else {
>
At 04:10 PM 3/28/07 -0700, Wagner, David --- Senior Programmer Analyst ---
WGO wrote:
> take the o off the /o This is in essence saying you only have to
>compile this once for the processing going on. Take that off and see
>what happens. I believe you would use /o if you have regex has no
>va
take the o off the /o This is in essence saying you only have to
compile this once for the processing going on. Take that off and see
what happens. I believe you would use /o if you have regex has no
variables which are changing with each iteration.
If you have any problems or qu