- Original Message -
From: Krishna, Hari [EMAIL PROTECTED]
Heres my input:
486 286 9 250 00788 30787 2
This is different to the input you originally posted. (It is only 32
characters long.)
Just thought I'd pont that out in case it has a bearing on the solution to
this problem
- Original Message -
From: FARRINGTON, RYAN [EMAIL PROTECTED]
To: 'Sisyphus' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Saturday, October 26, 2002 1:21 AM
Subject: RE: Terrible at my logic
Sisyphus,
you input string is incorrect.
my $string = 486286 9 250 00788 30 787 2
this might help you guys to help me out with the problem.
Thanks a lot.
Regards,
Hari.
-Original Message-
From: Sisyphus [mailto:kalinabears;hdc.com.au]
Sent: Friday, October 25, 2002 10:23 AM
To: [EMAIL PROTECTED]
Subject: Re: Terrible at my logic
- Original Message -
From
: Terrible at my logic
Sisyphus,
you input string is incorrect.
my $string = 486286 9 250 00788 30 787 2; #should be
my $string = 486286 9 250 00788 30787 2; #according to the
original
email.
Oh yeah ... and I can't count, either :-)
So why the expectation that output
- Original Message -
From: Krishna, Hari [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, October 26, 2002 12:37 AM
Subject: Terrible at my logic - some more inputs
forgot to include the print statement
print OUTPT $ln54_1 $ln54_2 $ln54_3 $ln54_4 $ln54_5 $ln54_6 $ln54_7
Krishna, Hari wrote, on Friday, October 25, 2002 11:37 AM
: Let me post how the input file looks like.
:
: 250 80707 13 294 8
: 332 0 286 5 428 0
: 486 286 9 250 00788 30787 2
: 707 14788 21 414 9 355 8 344 1
:
: Here's how my output should look like:
:
: 250 80 707 13 294 8
: 332 0
Title: RE: Terrible at my logic
Hari,
Joseph is hitting it on the head... *warning sloppy code ahead* the following code worked like a champ for me on all the provided inputs...
@str = (250 80707 13 294 8,
332 0 286 5 428 0,
332 0 286 5 428 0,
414 9 428 0 797 ,
333 0 781 2 458 9 ,
414
On 25/10/2002 15:37:16 Krisna, Hari wrote:
forgot to include the print statement
print OUTPT $ln54_1 $ln54_2 $ln54_3 $ln54_4 $ln54_5 $ln54_6 $ln54_7
$ln54_8;
change this to:
print OUTPT
$ln54_1!$ln54_2!$ln54_3!$ln54_4!$ln54_5!$ln54_6!$ln54_7!$ln54_8!;
You separate the columns with spaces