Hey Jeff & Others,
Thursday, July 05, 2001, 2:04:17 PM, my MUA believes you used
(X-Mailer not set) to write:
Thanks for the tip (don't my SOMETHING if CONDITION;).
I got the same response from 2 people. Is there a reason I should
pick one solution over the other? Or is this another case of
T
On Jul 5, Tim Musson said:
>I want to split to @Group only if the 3rd element of @Line has data.
>It works, but I get an error (Use of uninitialized value in split)
>using -w, strict, and diagnostics. Should I be doing this differently?
>
>while (<>) { chomp;
>my @Line = split(/,/);
>
>
On Thu, 5 Jul 2001, Tim Musson wrote:
> CO> WAG: try
> CO> my @Group = split(/_/, $Line[2]) if (defined($Line[2]));
>
> Thanks, that did it. I should just listen to myself talk sometimes. I
> was just saying to a coworker, "I only want to split if $Line[2] is
> defined"!
BEWARE of this constru
Hey Chas,
Thursday, July 05, 2001, 1:16:05 PM, my MUA believes you used
Evolution/0.10.99 (Preview Release) to write:
>> I want to split to @Group only if the 3rd element of @Line has data.
>> I would like to put nothing in $Group[-1] if $Line[2] is empty.
>>
>> while (<>) { chomp;
>> my @
On 05 Jul 2001 13:01:33 -0400, Tim Musson wrote:
> perlers,
>
> I want to split to @Group only if the 3rd element of @Line has data.
> It works, but I get an error (Use of uninitialized value in split)
> using -w, strict, and diagnostics. Should I be doing this differently?
>
> I run this with a
perlers,
I want to split to @Group only if the 3rd element of @Line has data.
It works, but I get an error (Use of uninitialized value in split)
using -w, strict, and diagnostics. Should I be doing this differently?
I run this with a filename parm, and the file contains:
uid1,cn 1,ua_bit_essd
ui