RE: Chomping in wrong place...

2003-08-14 Thread Wert, Nathaniel J
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

Chomping in wrong place...

2003-08-14 Thread Wert, Nathaniel J
> 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 $

malloc equivalent.

2002-10-30 Thread Wert, Nathaniel
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]

File::Find::find problem.

2002-10-16 Thread Wert, Nathaniel
> 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

system() output question.

2002-02-22 Thread Wert, Nathaniel
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]

Win32::Console.

2001-12-13 Thread Wert, Nathaniel
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.

win32 peekinput

2001-12-13 Thread Wert, Nathaniel
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

RE: win32 console input problem

2001-12-12 Thread Wert, Nathaniel
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:[

RE: gethostbyname and getnetbyname

2001-11-02 Thread Wert, Nathaniel
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:

RE: gethostbyname and getnetbyname

2001-11-02 Thread Wert, Nathaniel
[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:

gethostbyname and getnetbyname

2001-11-02 Thread Wert, Nathaniel
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,

Parsing syscall input.

2001-11-02 Thread Wert, Nathaniel
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].