This worked. I forgot about chomping that. Thanks.
-Original Message-
From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 1:09 PM
To: Wert, Nathaniel J
Cc: [EMAIL PROTECTED]
Subject: Re: Chomping in wrong place...
On Aug 14, Wert, Nathan
> Here is the basis of the script:
>
> #!/usr/bin/perl -w
>
> my $file;
> my $db;
> my $node;
>
> print "Prompt user for file name";
> chomp($file = );
>
> print "Prompt user for database";
> chomp($db = );
>
> open INPUT, $file or die "\n\nCan't open file $
Just would like to know if there is a malloc equivalent.
Thanks.
---
Nathaniel J. Wert
Computer Associates
Quality Assurance Engineer, Development
tel: +1 513 229 2300
[EMAIL PROTECTED]
> Script purpose:
> I am trying to search an extremely large mounted dir on NT and find the location of
>any file or dir that starts with a certain string that is given on command line.
>
> Problem:
> File::Find::find({wanted => \&wanted}, 'e:\\');
> There is something about this line that is ju
I would like to be able to take the output of system(some cmd) and send it to a
filehandle. How is this possilbe?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Looking for the same thing.
-Original Message-
From: Ryan Guy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 3:25 PM
To: '[EMAIL PROTECTED]'
Subject: Win32::Console.
If anyone knows where I can find some half way decent examples and
explanations I would be thrilled thanks.
Is there some trick to this?
use Win32::Console;
$con = Win32::Console->new(STD_INPUT_HANDLE);
@event = $con->PeekInput();
$tmp = chr($event[5]);
print "\n The character typed was: $tmp \n";
If I use Input() instead of PeekInput() it works fine and the docs say that it is
suposed to work the sa
Thank you. This worked. I was incorrectly figuring the breakdown of the array. Next
question, isn't peekinput supposed to work the same way. The program runs without any
error, but the array is not populated with peekinput.
Thanks again.
-Original Message-
From: Herb Hall [mailto:[
I just realized I was not chomping . Thanks.
-Original Message-
From: Wert, Nathaniel
Sent: Friday, November 02, 2001 5:19 PM
To: 'Maxim Berlin'
Cc: '[EMAIL PROTECTED]'
Subject: RE: gethostbyname and getnetbyname
Maybe it comes in the statement before that:
[mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 4:54 PM
To: [EMAIL PROTECTED]
Subject: Re: gethostbyname and getnetbyname
Hello Nathaniel,
Friday, November 02, 2001, Wert, Nathaniel <[EMAIL PROTECTED]> wrote:
WN> 1) I can get gethostbyname to work in this format:
Thank you for the help earlier, but I am still having a problem.
1) I can get gethostbyname to work in this format: gethostbyname('node.foo.com'). I
need it to work in the following format: gethostbyname($nodename). Is this not set
up for that?
2) I tried to alternatively use getnetbyname,
I am trying to make a feable attempt at parsing a nslookup call. All I actually want
is the IP address. So I figured I would do the following:
$ticker = 0;
foreach $_ (`nslookup $nodename`) {
$_ = $out[$ticker];
$ticker++;
}
print $out[0];
I am getting a uninitalized error for $out[0].
12 matches
Mail list logo