beginner

2001-09-22 Thread Daryl
I am wondering if there is a way to return automatically to a form if the information is not correct? Such as the @ in a email address is left out! I know how to check for this problem but don't know how to auto return. Any help is appreciated! Daryl Merrifield -- To unsubscribe, e

Re: On STDOUT show matched words in color

2003-02-14 Thread Daryl
ows command processor, ie cmd.exe, is capable of printing in colour. You could install Cygwin(some unix tools for windows) & use bash(an alternative shell) in place of the standard windows shell, that may work. Hope thats of some help Daryl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

RE: On STDOUT show matched words in color

2003-02-14 Thread Daryl
& wasn't aware that the default console supported colours. Very usefull tidbit. Aloha => Beau. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Daryl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: good general programming book?

2003-02-25 Thread Daryl
uld flow, rather than the finer details like syntax. Thanks, Jose Daryl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: system

2001-06-07 Thread Daryl Hoyt
Hi, Make sure the path to your exe is correct. I had that problem before. > -Original Message- > From: prachi shroff [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 07, 2001 8:01 AM > To: [EMAIL PROTECTED] > Subject: system > > > Hi, > > I am trying to run an executable file

Converting Unix paths to windows

2001-06-27 Thread Daryl Hoyt
Hi, I am writing a script to be used on Windows and many different flavors of Unix. I am looking for a good way to convert Unix paths to Windows. Any Ideas? Thanks, Daryl J. Hoyt Performance Engineer Geodesic Systems http://www.geodesic.com [EMAIL PROTECTED]

converting bash scripts to Perl

2001-06-04 Thread Daryl Hoyt
Hi, I am looking for an easy way to convert bash scripts to Perl. I have about 1000 scripts, and would prefer not to convert them by hand. If you have any idea where I can get a converter, I would greatly appreciate the help. Thanks, Daryl J. Hoyt Performance Engineer Geodesic Systems

Help with net::telnet

2001-11-08 Thread Daryl Hoyt
5-STABLE (sparky) #6: Sat Nov 4 12:00:07 CST 2000 /chicago/sqa/sqa sqa@sparky# +++++ Thanks, Daryl Hoyt __ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

NET::TELNET

2001-11-21 Thread Daryl Hoyt
Hi, I have used this example program to telnet to a different box (from a RH Linux 6.2 box to a FreeBSD box), but I cannot get the right output. It appears to just echo the command and the path. Any ideas what I am doing wrong. I thought it was supposed to print out the list of who is on th

Getting started

2009-06-24 Thread Daryl Styrk
s out of the way? I supposed I would make sense of it all soon enough. But I would prefer to have something to read about those topics for reference. -- Daryl Styrk Naples FL, USA -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Newbie question

2003-02-12 Thread Daryl Field
actually mention Perl in this reply(which would seem apropriate), you can script to your hearts content on the webserver, preferably even on the IBM machine that's being queried. Good luck, Daryl --On 11 February 2003 13:27 -0500 Steve Lobach <[EMAIL PROTECTED]> wrote: I've been

Subroutine return value

2025-05-14 Thread Daryl Lee
In “Learning Perl”, Pg. 116, is found this sentence: Whatever calculation is last performed in a subroutine is automatically also the return value. I have a subroutine that (almost) ends with this loop: foreach my $line (@lines) { $sum += evaluate($line); } What I want to return i

RE: Re: Editor

2001-07-06 Thread Daryl J. Hoyt
I use vi only when nothing else is available. ;-> -Original Message- From: anton [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 8:08 AM To: [EMAIL PROTECTED] Subject: Re: Re: Editor I've listen to you all about the editors problem Is anybody out there still using the old bottom-

RE: Problems with ^M

2001-07-16 Thread Daryl J. Hoyt
I believe chomp will take care of the line-ending code. -Original Message- From: System Administrator [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 1:49 PM To: [EMAIL PROTECTED] Subject: Problems with ^M This is for newbies, right? Can anyone tell me why a s/^M//g won't get rid

RE: Ok brain fart here...

2001-07-18 Thread Daryl J. Hoyt
What are the errors? It works fine here. -Original Message- From: Richie Crews [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 10:27 AM To: [EMAIL PROTECTED] Subject: Ok brain fart here... Ok I am beating my head why this is not working... $fname = ; chomp $fname; $fletter

I'm looking for a program to make a Perl Script into a Windows .EXE

2001-07-19 Thread Daryl J. Hoyt
Hi, I'm looking for a program that can make a windows executable out of a Perl script. The exe would then be run on computers that do not have Perl installed on them. Does anyone have any suggestions or recommendations? Thanks, Daryl J. Hoyt Performance Engineer Geodesic Systems

RE: Perl is amazing!!

2001-08-23 Thread Daryl J. Hoyt
This link takes you to a great beginner's page. I find it very useful and still reference it occasionally. http://www.cs.unm.edu/~bwylie/perl/start.html -Original Message- From: Randy5235 [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 7:18 AM To: [EMAIL PROTECTED] Subject: Pe

RE: is this sub called correctly? am I missing something?

2001-08-23 Thread Daryl J. Hoyt
I do not believe that you need the "&" before the function call. -Original Message- From: Birgit Kellner [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 12:52 PM To: [EMAIL PROTECTED] Subject: is this sub called correctly? am I missing something? I have a sub called and it do

Number of processors on a *nix system

2001-08-27 Thread Daryl J. Hoyt
Hi, I am looking for a way for Perl to determine how many processors are on a system. I know in Windows, I can use the NUMBER_OF_PROCESSORS environment variable, but *nix doesn't have this. Any Ideas??? Thanks, Daryl J. Hoyt Performance Engineer Geodesic Systems

Pushing and Popping ENV

2001-10-24 Thread Daryl J. Hoyt
Hi, I would like to run a script that would significantly change the environment several times. I was wondering if there is a way to push and pop the environment table in Perl so I could always start with the original environment table. Any ideas. Thanks, Daryl J. Hoyt Performance

RE: Using die but not break out of the script

2001-12-07 Thread Daryl J. Hoyt
You could use: system ("dir $servervolume > dirinfo") || ($var = 0); Daryl J. Hoyt Performance Engineer Geodesic Systems 312-832-2010 <http://www.geodesic.com> <mailto:[EMAIL PROTECTED]> -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: Global Symbols

2001-12-19 Thread Daryl J. Hoyt
Try $::whatever. It may be using strict -w. Daryl J. Hoyt Performance Engineer Geodesic Systems 312-832-2010 <http://www.geodesic.com> <mailto:[EMAIL PROTECTED]> -Original Message- From: Chris Zampese [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 9:38 A

RE: Good CS Literature

2001-12-27 Thread Daryl J. Hoyt
roustrup "Perl Cookbook" Christiansen and Torkinton (O'Reilly Press) "Operating System Design" Douglas Comer and Timothy V. Fossum Daryl J. Hoyt Performance Engineer Geodesic Systems 312-832-2010 <http://www.geodesic.com> <mailto:[EMAIL PROTECTED]> -Orig

RE: I need your help

2001-12-28 Thread Daryl J. Hoyt
How about: if($string eq $name) { $string = "#".$string; } Daryl J. Hoyt Performance Engineer Geodesic Systems 312-832-2010 <http://www.geodesic.com> <mailto:[EMAIL PROTECTED]> -Original Message- From: Jose Vicente [mailto:[EMAIL PROTECTED]] Sent: Fri

Is there a way to rsh (or remsh) in Perl?

2002-01-04 Thread Daryl J. Hoyt
I have several scripts that I would like to get data from several machines. I have seen the ssl and telnet modules, but is there one for rsh. It has been recommended to me that rsh would be a better approach. Regards, Daryl J. Hoyt Performance Engineer Geodesic Systems 312-832-2010 <h

RE: Is there a way to rsh (or remsh) in Perl?

2002-01-04 Thread Daryl J. Hoyt
anks in advance -Original Message- From: KeN ClarK [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 9:16 AM To: Daryl J. Hoyt Cc: Beginners Perl; Perl-Unix-Users Subject: Re: Is there a way to rsh (or remsh) in Perl? search.cpan.org. it's wonderful. http://search.cpan.or

REGEXP Help on Linux

2002-01-04 Thread Daryl J. Hoyt
e would be greatly appreciated. Thanks, Daryl J. Hoyt #!/usr/local/bin/perl -w use strict; use Net::Telnet (); $::command = "p4 sync -f \$HOME/p4/eng/sqa/tools/..."; $::username = "sqa1"; $::passwd = "***"; $::machine = "sparky"; $::t = new Net::Te

RE: What's this error?

2002-01-14 Thread Daryl J. Hoyt
Try $::root. Or if you're using a package (like package bob), use $bob::root. Daryl J. Hoyt Performance Engineer Geodesic Systems 312-832-2010 <http://www.geodesic.com> <mailto:[EMAIL PROTECTED]> -Original Message- From: Scott Taylor [mailto:[EMAIL PROTECTED]] Sent

RE: Reg Exp help

2002-02-26 Thread Daryl J. Hoyt
=~ s/|GRP|//; $WhatFollowsGRP = $line; }# end if }# end foreach loop Daryl J. Hoyt Performance Engineer Geodesic Systems 312-832-2010 <http://www.geodesic.com> <mailto:[EMAIL PROTECTED]> -Original Message- From: Busse, Rich [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26,

RE: Substitution: How do I say ...

2002-03-29 Thread Daryl J. Hoyt
s/\t454354//g; Daryl J. Hoyt Performance Engineer Geodesic Systems 312-832-2010 <http://www.geodesic.com> <mailto:[EMAIL PROTECTED]> -Original Message- From: KEVIN ZEMBOWER [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 10:58 AM To: [EMAIL PROTEC

RE: Substitution: How do I say ...

2002-03-29 Thread Daryl J. Hoyt
E: Substitution: How do I say ... Hi, Daryl, thanks for writing. Wouldn't this substitute for tabs which DO have a 454354 after them? I was asking how to sub for tabs which do NOT. -Kevin >>> "Daryl J. Hoyt" <[EMAIL PROTECTED]> 03/29/02 12:32PM >>>

RE: question

2002-04-16 Thread Daryl J. Hoyt
an example. #!/usr/local/bin/perl -w push(@INC, "/usr/home/aaa/"); # only needed if someScript.pl is not in the @INC dir, which includes the local dir require 'someScript.pl'; &someScriptFunction; Daryl J. Hoyt Performance Engineer Geodesic Systems 312-832-2010 <ht

XML::XPath / XML::Parser problems on Windows (cygwin)

2002-05-22 Thread Daryl J. Hoyt
have tried both unix and windows styles). I have even copied the expat.h file into the directory where it is supposed to be built. Anyone have any ideas what else I can do? Daryl J. Hoyt Performance Engineer Geodesic Systems 312-832-2010 <http://www.geodesic.com> <mailto:[EMAIL PROTECTED]>

RE: Environment variables and Win32::ODBC

2002-11-07 Thread Daryl J. Hoyt
I think the line is supposed to be: use Win32::ODBC; Thanks, Daryl J. Hoyt Software Engineer Geodesic Systems < http://www.geodesic.com> < mailto:djh@;geodesic.com> -Original Message- From: Angel Iliev Kafazov [mailto:angel.kafazov@;mail.bg] Sent: Thursday, November 07

RE: fork?

2002-11-13 Thread Daryl J. Hoyt
uff exit(0); } waitpid($pid,0); Daryl J. Hoyt Software Engineer Geodesic Systems 312-832-2010 < http://www.geodesic.com> < mailto:djh@;geodesic.com> -Original Message- From: chad kellerman [mailto:ckellerman@;alabanza.com] Sent: Wednesday, November 13, 2002 2:32 PM To: [EMAIL

Regex Help

2002-07-08 Thread Daryl J. Hoyt
Hi, I am trying to write a script to kill all processes named $string. I am not sure how to handle the regex the right way. Here is a sample of the command: djh 17893 17892 0 Jul03 pts/16 00:00:00 rlogin test3 djh 6401 25628 0 Jul05 ?00:00:00 [rhn-applet ] djh 6

getting a child process's pid

2002-07-09 Thread Daryl J. Hoyt
ID for the fork in the if statement and not the one from the system call. Is there any way to get the PID from the child? Any help would be greatly appreciated. Thanks, Daryl

RE: Shift

2002-07-16 Thread Daryl J. Hoyt
It returns the first value of an array and then increments the index. Daryl J. Hoyt Software Engineer Geodesic Systems 312-832-2010 < http://www.geodesic.com> < mailto:[EMAIL PROTECTED]> -Original Message- From: Adriano Sastre Vieira [mailto:[EMAIL PROTECTED]] Sent: Tues

Is there a way to do cron on windows?

2002-08-20 Thread Daryl J. Hoyt
appreciated. Thanks, Daryl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: help with file reading

2002-10-07 Thread Daryl J. Hoyt
You can pass in a variable it would be something like this: $lofile = " somefile"; file_read($lofile) ; sub file_read($) { my ($file) = @_; while (<$file>) blah..blah.. } Daryl J. Hoyt Software Engineer Geodesic Systems 312-832-2010 < http://www.geodesic.com> <