- 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;
The length has no significance as far as I am concerned. But each set of
numbers belong to A line only.
So the length of each input line may vary.
Let me post how the input file looks like.
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
BTW, for the sake of clarity when such a problem is presented, how about
having a preamble saying that blank spaces will be shown here as some
visible character not used in the problem?
This would be useful for those of us with so-so eyesight, or who unfortunately
have to put up with
- 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
I'm trying to determine the number of days, hours, minutes, seconds
since the last reboot of a server. With WMI I can get the date and time
of when that occurred. When I use Date::Manip to calculate the
difference between the current date/time and the last reboot, it comes
up incorrect.
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
[EMAIL PROTECTED] wrote:
The output looks like this:
date1 = 2002101714:59:00
date2 = 2002102510:47:56
date3 = +0:0:1:0:19:48:56
There's defintely 7+ days between these two dates, it shows 0 days,
19 hours, 48 minutes, 56 seconds.
Actually, it shows 1 week, 0 days, 19 hours, 48 minutes,
Mark,
Here is a way to make a shortcut to a file or URL using OLE.
James
use Win32::OLE;
$WSH = Win32::OLE-new('Wscript.Shell');
$SC = $WSH-CreateShortcut($WSH-SpecialFolders('AllUsersDesktop').\\Sample.lnk);
$SC-{WindowStyle} = 4; # 3=Maximized 4=Normal 7=Minimized
$SC-{TargetPath} =
Thanks, James.
Will your script work on both Win98 and 2k systems?
I ended up using this script due to issues with 98:
use Win32::Shortcut;
use File::Copy;
if ($OS) {
$User = Win32::LoginName();
$Dir2k = c:\\documents and settings\\$User\\desktop;
print $Dir2k\n;
create2k;
} else {
On Mon, 21 Oct 2002, Issa Mbodji wrote:
Hello:
Does anyone understand how to authenticate a user from an Access database
with 2 fields (username and password). The user is logging from an HTML
form with 2 fields (username and password). I tried everything and it
does not seem to work.
Is
On Mon, 21 Oct 2002, donald power wrote:
Nope, the value is there after the '=' sign, (ie $Sheet-$Range(A2:A7)-{'Text'};
).
I simply copied it from notepad and did not displayed nicely in the email format.
Sigh wish anyone can point me to the right direction.
--- Bruno FABLET [EMAIL
Mark,
It should work properly on a Win9x machine, as I asked the OS for the location of the
desktop rather then using a hardcoded path, although I do not know if it supports the
All Users Desktop tag. Here is a list of most of the standard folders the OS tracks
on. Win9x does not support
Thanks for the info, James. I might be able to enhance my script even
further with your pointers.
Mark
-Original Message-
From: Krummel, James C - PGGC-6 [mailto:jckrummel;bpa.gov]
Sent: Friday, October 25, 2002 4:02 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: RE:
Krummel, James C - PGGC-6 wrote:
Mark,
It should work properly on a Win9x machine, as I asked the OS for the location of the desktop rather then using a hardcoded path, although I do not know if it supports the All Users Desktop tag. Here is a list of most of the standard folders the OS tracks
17 matches
Mail list logo