Re[2]: $ENV

2001-06-09 Thread Tim Musson
Hey Philip, I also have an environ.pl file that I use, but it is smaller and I think (?) uses less resources. Can anyone confirm that it is faster and uses less resources to no use CGI for little things? #!/usr/local/bin/perl print "Content-type: text/html\n\n CGI Environment CGI Environm

Re[2]: [META] Rants (was:Re: space)

2001-06-09 Thread Tim Musson
Hey Aaron, Friday, June 08, 2001, 12:51:05 PM, you wrote: AC> I've got to take issue with this. I use Eudora, which for just about AC> everything else is a nice program. Though it's not 100% free of problems AC> and bugs -- it does not have any options for handling lists -- I don't AC> thin

Re[2]: space

2001-06-09 Thread Tim Musson
Hey Chas, Thursday, June 07, 2001, 7:44:11 PM, you wrote: CO> On 07 Jun 2001 19:36:57 -0400, Mark S wrote: >> You could just set up a web server on your own machine, if that's all you're >> looking to do. >> >> >> who knows of some free web space that allows the use of perl? so i can test >> m

Re: Perl and the MicroSoft NT/Win2000 GUI

2001-06-09 Thread Tim Musson
Hey ggage, Friday, June 08, 2001, 12:17:50 PM, you wrote: gmc> I would like to run a perl script and pass in an argument (ARGV[0]) by gmc> dragging a textfile icon on to the perl script icon. This would be on an gmc> NT/Win2000 system using the icons in file manager, desktop, etc. The gmc> arg

Why ./perl/lib & ./perl/site/lib?

2001-06-10 Thread Tim Musson
Hey all, I was wondering why the perl install has both the ./perl/lib and ./perl/site/lib folders? They both seem to have the same type of things (modules, etc...). Why are there both, and why would you choose to put a module you were writing in one or the other? -- [EMAIL PROTECTED] Using Th

Archive old files

2001-06-10 Thread Tim Musson
Perl People, I am the only one at my current contract that knows Perl (and I can't for the life of me figure out why the others don't learn it instead of asking me each time it is needed... ). This time, I thought I would ask the list... The network drives (P: for personal data, etc)

Re[2]: Perl and the MicroSoft NT/Win2000 GUI

2001-06-11 Thread Tim Musson
Thanks Jindra, Monday, June 11, 2001, 10:06:13 AM, you wrote: JV> Workaround is to use pl2bat script which encapsulates the perl JV> source within a .bat file and handles everything as necessary. JV> It is the way already suggested here, I just wanted to point out JV> the PL2BAT script, which i

Re[2]: Installing new Modules problem

2001-06-11 Thread Tim Musson
Hey Evgeny, Monday, June 11, 2001, 4:11:54 PM, you wrote: >> I download a >> module from activestate but when I try to install it I get the following >> error. >> G:\Perl\bin>>>ppm install win32-gui.ppd EGaG> Why not to visit the CPAN, take the tar.gz distribution, open it and run EGaG> perl m

Reformating text

2001-06-15 Thread Tim Musson
Hey Perlers, I have pulled some books from Project Gutenberg (www.Gutenberg.net). What I want to do is take all the Paragraphs and put them on one line, then put them into the Palm DOC format. This way they wrap correctly on the Palm screen. There is no indenting that I care about, so

Re: MS-DOS

2001-06-15 Thread Tim Musson
Hey Crystal, Friday, June 15, 2001, 2:23:41 PM, you wrote: CG> Once upon a time I could use MS-Dos to run my Perl scripts at the C:\Perl CG> prompt. Then use Perl nameofscript.pl or whatever the name was. That isn't CG> working anymore. Anyone have any idea why? What can I do to fix it. I've CG>

Re: Reading Messages.tbb

2001-06-15 Thread Tim Musson
Hey Evgeny, Wednesday, June 13, 2001, 7:13:14 PM, you wrote: EGaG> Hi, EGaG> As I saw some of you are using "TheBat!" mail client, me too. EGaG> I'd like to be able to read it's messages from the script - for that EGaG> I have to know the binary format of "Messages.tbb" files where it keep

#!/perl -w, Strict, & Diagnostics

2001-06-15 Thread Tim Musson
Hey all, I have been using #!/perl -w and based on some posts have started using use Strict; use Diagnostics; as I develop code (all helpful things to do). My question is when I put the code into production, should I leave any of these turned on? I am thinking that they are to help with devel

Re[2]: MS-DOS

2001-06-15 Thread Tim Musson
Hey Mark, Friday, June 15, 2001, 2:48:14 PM, you wrote: MF> Is Perl in your system path? The first line in the script doesn't help MF> any in DOSneyland. I usually just type "perl script.pl" if it is. It is MF> possible to associated the dot-p-l extension with Perl.exe in the MF> Windows GUI, bu

Re: I need help running perl for windows

2001-06-15 Thread Tim Musson
Hey REIGNCandE, Friday, June 15, 2001, 2:39:03 PM, you wrote: Rac> Whenever I try to open my script from the command line (the Rac> infamous "Hello, World" script), I can see hello world! on my Rac> screen for 1 second and then my Perl inturpreter suddenly Rac> disappears off of my screen; Soun

Re[2]: When to use "my"?

2001-06-15 Thread Tim Musson
Hey Brett, Friday, June 15, 2001, 4:28:05 PM, you wrote: BWM> Using "my" puts the variable into a lexical scope and keeps it BWM> out of the global name space. What does lexical mean here? I looked it up in a dictionary, but still am not sure how it applies. -- [EMAIL PROTECTED] Using The Ba

Re[4]: When to use "my"?

2001-06-15 Thread Tim Musson
Hey Paul, Friday, June 15, 2001, 6:50:02 PM, you wrote: PJ> On Fri, Jun 15, 2001 at 06:07:38PM -0400, Tim Musson wrote: >> Hey Brett, >> >> Friday, June 15, 2001, 4:28:05 PM, you wrote: >> >> BWM> Using "my" puts the variable into a lexical sco

Re[2]: Reformating text

2001-06-15 Thread Tim Musson
line seperator to a blank line while (<>) { # read in all paragraphs s/\n/ /g; # remove all new lines in paragraph print OUTfile "$_\n\n"; # print OUTfile paragraph with a blank line after it } print OUTfile "\n\n$header"; # print OUTfile header Friday, June 15,

Re[4]: Reformating text

2001-06-16 Thread Tim Musson
Hey Chas, Saturday, June 16, 2001, 1:47:30 AM, you wrote: CO> On 15 Jun 2001 19:31:39 -0400, Tim Musson wrote: >> Hey Chas, >> >> Thanks, I run Win2k so had to make some changes (the unix \r\n is just >> \n on the M$ OS's). I also had a question. >> &g

Re[6]: Reformating text

2001-06-16 Thread Tim Musson
Hey Me, Saturday, June 16, 2001, 2:03:07 PM, you wrote: >> My next direction is OOP, but I have found it to be a >> little beyond my grasp each time I try. Maybe with this >> list's help I can get it. M> First you have to unlearn. M> Imagine you knew nothing about programming. M> Now, I intr

Re: RFC on my short recursive code

2001-06-18 Thread Tim Musson
Hey Pete, Not sure why you want to call ls when Perl can do the same thing. I asked the list a similar question (I needed to move old files to a different top directory - retaining the path to each file) a couple weeks ago and got the following. (btw, I run this on Win32, so you will need to cha

Drive cleanup...

2001-06-18 Thread Tim Musson
Hey all you great Perlers, I am helping out my Win32 Server Admin team. They need to clean up the "network drives". Currently ~40Gb of data. We are looking at making 3 passes. 1. Folders - for example the "Windows" and "WinNT" folders (people were asked to backup their *

Re[2]: Getting Started

2001-06-19 Thread Tim Musson
Hey Gary, Tuesday, June 19, 2001, 8:03:23 AM, you wrote: GLA> It's not too late, we can save you, use UNIX... come to the Dark GLA> Side, Luke... Dark side? I thought that was M$ - you know BORG, Dark Side, etc GLA> I'm only sort of kidding but hey, I use a PC as well. Dang GLA> Microsoft. 8<-

Re: Use of File::Copy

2001-06-19 Thread Tim Musson
Hey Fabien, Tuesday, June 19, 2001, 5:05:19 AM, you wrote: FJ> I'm trying to use copy($name,$folder.$name), but it doesn't work! FJ> Yet, I've put "use File::copy" in my program. FJ> I tried with $name = "essai0.flr" and $folder="archive\\" on Win NT4 >From this list I have found that a great

Re[2]: Help: move folder?

2001-06-20 Thread Tim Musson
Hey Brett, Wednesday, June 20, 2001, 8:38:34 AM, you wrote: >> Is there a Perl way to move a folder with out doing it one file at >> a time? (Similar to M$ Windows Explorer where you can drag a folder >> to another folder?) BWM> Of course -- take a look at the File::Copy module. It has a move B

Re[3]: Help: move folder?

2001-06-20 Thread Tim Musson
Ok, I was wrong, the folder is created in the Destination dir, but it is empty, and my perl code gives an error in the die statement... Uncaught exception from user code: Error: Permission denied What am I doing wrong here? >>> Is there a Perl way to move a folder with out doing it one

Re[4]: Help: move folder?

2001-06-20 Thread Tim Musson
Hey Brett, Wednesday, June 20, 2001, 9:51:09 AM, you wrote: BWM> The function may not work across filesystem boundaries, and this BWM> may include networked drives (especially on WinNT -- not sure BWM> what it can do). BWM> I think rename may also be usable, but again, it may have the same BWM>

Re[5]: Help: move folder?

2001-06-20 Thread Tim Musson
Hey Brett, Wednesday, June 20, 2001, 9:52:01 AM, you wrote: >> Uncaught exception from user code: >> Error: Permission denied >> >> What am I doing wrong here? BWM> Perhaps you don't have permission to access the drives or folders BWM> in question? Nope, my test drive is my ThinkPad's

Re: Newbie question about running programs from the command line.

2001-06-20 Thread Tim Musson
Hey SAWMaster, Wednesday, June 20, 2001, 12:10:49 PM, you wrote: S> Hi group. S> Short 'n sweet question. Is there a way to run perl programs from S> the command line without having to precede usage with "perl" I see you are running M$ Win, but which version? What Perl are you running? I have

Re[2]: compilation errors in win98

2001-06-21 Thread Tim Musson
Hey james, Can you change the Properties of the command window? Right click on the blue bar at the top, Properties, then the Layout tab. I typically set it to: Screen Buffer Size: Width 100 Height 300 Window Size: Width80 Height 50 This should work on 98. I run Win2k, but it also work

Re[2]: if statement

2001-06-21 Thread Tim Musson
Hey Jos, I believe you have to use ! instead of "not" also... Wednesday, June 20, 2001, 6:05:39 PM, you wrote: JIB> i'd say, there is no 'like' operator... >> This isn't working for me. Help please. What is wrong with the second if >> statement >> >> while ( ($timestamp, $report_type, $gam

Re: Last page

2001-06-21 Thread Tim Musson
Hey Stéphane, Thursday, June 21, 2001, 8:37:53 AM, you wrote: SJB> How can I get the URL which was calling my script (like SJB> document.referrer in Javascript) SJB> tks This will show you all the available ENV variables pick the one you want and use it as $ENV{HTTP_REFERER} #!/usr/loca

Re[2]: compilation errors in win98

2001-06-21 Thread Tim Musson
Hey james, Thursday, June 21, 2001, 9:26:34 AM, you wrote: jc> The version of DOS I have on win98SE doesn't allow for a scroll jc> bar as suggested by one comment nor does it have a layout tab to jc> set the size of the window although it does allow a set to a jc> maximum of 50 lines. Are you

Re: PPM

2001-06-21 Thread Tim Musson
Hey Nick, Thursday, June 21, 2001, 2:46:11 PM, you wrote: NT> Ok, I am running windows 2000, I have perl, but I do not know NT> which distribution, I do not think that it is activestate's NT> however. I searched by drive and found ppm in a folder in the NT> perl folder, but there is no ex

Re: HELP ME-new to perl

2001-06-22 Thread Tim Musson
Hey sridevi, Friday, June 22, 2001, 3:07:40 AM, you wrote: sa> Hi all, Could anyone briefly explain the difference between sa> the shell script and the scripting language like perl? Thanx in sa> advance, visu sa> __ sa> Do You Yahoo!? sa> Ge

A better way?

2001-06-22 Thread Tim Musson
Hey all, I have this code fragment. if ($Var eq "String") { &Sub($Var1); } elsif ($Var2 =~ /$STRING/) { &Sub($Var1); } Is this a better way? if (($Var eq "String") || ($Var2 =~ /$STRING/)) { &Sub($Var1); } -- [EMAIL PROTECTED] Using The Bat! eMail v1.53d Windows NT 5.0.2195 (Ser

Re[2]: A better way?

2001-06-22 Thread Tim Musson
Hey iansmith, Friday, June 22, 2001, 10:15:49 PM, you wrote: >> &Sub($Var1); } snip i> You can also leave off the & if you are using Perl 5. I am using the most recent from ActiveState, but I tend to stick the & out there so I can tell at a glance that I am calling a sub. Does it cause p

Re[2]: A better way?

2001-06-22 Thread Tim Musson
Hey Paul, Friday, June 22, 2001, 10:14:28 PM, you wrote: >> if ($Var eq "String") { &Sub($Var1); } elsif ($Var2 =~ >> /$STRING/) { &Sub($Var1); } >> >> Is this a better way? >> >> if (($Var eq "String") || ($Var2 =~ /$STRING/)) { >> &Sub($Var1); >> } P> I like it better. P> Perso

Re: Opening a file, but adding the date to the name

2001-06-24 Thread Tim Musson
Hey Tim, Sunday, June 24, 2001, 4:33:31 PM, you wrote: TG> but i want to make the filename be $_."the current date" TG> the localtime function doesnt look very promising, as the output is not TG> very human readable :-) I use localtime(time); all the time for this type of thing. here is the c

Use perl to "mv" dir?

2001-06-25 Thread Tim Musson
Hey Perlers, I asked this before, but I am still stuck, and never got a workable solution. Is there a way in perl to move a directory? Similar to unix "mv" command where you move a dir to another location (I am not crossing boundaries). I am on M$ Win2k, but the unix "mv" command is

Re[2]: /g

2001-06-25 Thread Tim Musson
Hey Sally, Do you have "Learning Perl"? Chapter 7. Regular Expressions 7.5 Substitutions "If you want the replacement to operate on all possible matches instead of just the first match, append a g to the substitution" Monday, June 25, 2001, 6:21:08 AM, you wrote: S> Cheers, that's all a book ha

Best practice for config file use?

2001-06-27 Thread Tim Musson
I need to pass a number of parms to my program. Is there a "best Practice" for how to do this? Command line is not something I want to do. I did search on "Config" from search.cpan.org, but it returned 99 modules! Any suggestions? In the past, I have done it by hand, but... --

Re[2]: Best practice for config file use?

2001-06-27 Thread Tim Musson
Hey Jos, Not sure I understand entirely, but I think I usually do #2 also. For example, I tend to do something like this in my code. Comments would be appreciated. (I have not tried to run this particular bit, for example, I was reading and think lc %Hash will tr all the hash value chars to lo

Re[3]: Best practice for config file use?

2001-06-27 Thread Tim Musson
Hey Tim, Wednesday, June 27, 2001, 3:16:45 PM, you wrote: TM> Hey Jos, TM> Not sure I understand entirely, but I think I usually do #2 also. TM> For example, I tend to do something like this in my code. Comments TM> would be appreciated. TM> Is this what you are talking about? ok, the previ

Re[5]: Best practice for config file use?

2001-06-28 Thread Tim Musson
Hey Jos, I like this option the best of the 3, but it is still hard to give to a non programing person and not expect them to mess up setting the vars... ie, => is what you separate things with, explaining which ' to use (' not `), end each parameter line with a , Wednesday, June 27, 2001, 6:15

Re[7]: Best practice for config file use?

2001-06-30 Thread Tim Musson
Hey Grant, Thursday, June 28, 2001, 5:34:26 PM, my MUA believes you used Internet Mail Service (5.5.2653.19) to write: GM> You might like to check out XML::Simple it was designed for GM> exactly this problem. GM> If you put your config data in a file called foo.xml: GM> GM> foo GM>

Re[2]: ENV & $HOME

2001-06-30 Thread Tim Musson
Hey Michael, Wednesday, June 27, 2001, 3:17:32 AM, my MUA believes you used (X-Mailer not set) to write: MF> On Wed, Jun 27, 2001 at 02:37:55AM -0400, Adam Theo wrote: >> i am looking for a way my perl program can automatically get the >> home directory of the user. >> linux, windows, mac, etc?

Re: need some help ...

2001-07-02 Thread Tim Musson
Hey perl, Monday, July 02, 2001, 5:21:16 AM, my MUA believes you used (X-Mailer not set) to write: pdo> hi, pdo> I want to do this : pdo> i have some servers where i want to check if some files exists and the user pdo> must put the all path with the name of the file ... pdo> use strict; pdo

Re[2]: Agnostic clear command...

2001-07-02 Thread Tim Musson
Hey Michael, Monday, July 02, 2001, 4:32:10 PM, my MUA believes you used (X-Mailer not set) to write: >> You are correct. I believe that the backticks work on the >> shell, so I replace `cls` with system("cls") and at least my screen >> cleared as it was suppose to. MF> Given the code sho

Re: uid

2001-07-02 Thread Tim Musson
Hey RL, Monday, July 02, 2001, 7:13:15 PM, my MUA believes you used QUALCOMM Windows Eudora Version 5.1 to write: Sounds to me like this is more of an OS issue, but here is my stab at answering your questions. RA> We copied some scripts from our old server onto our new one. They RA> are both (A

Best way to match 3 things?

2001-07-03 Thread Tim Musson
PerlGuru's, I had anif {} elsif {}and converted it to the following which I like, but now find I need to match 3 things - not 2. DoTheSub($PassedVar) if ($String eq "string") or ($foo =~ /$String/); I tried adding another "or" to the above, but that did not work (I didn't really think i

Re[2]: Best way to match 3 things?

2001-07-03 Thread Tim Musson
Hey John, Ok, I stand corrected, I guess it was something else that didn't work. Thanks! Tuesday, July 03, 2001, 8:38:02 AM, my MUA believes you used Internet Mail Service (5.5.2653.19) to write: JE> Adding another or works. JE> $String = 0; JE> $foo = 0; JE> $bar = 0; JE> print "Hello" if ($

Re: ActivePerl PPM Question

2001-07-03 Thread Tim Musson
Hey Bill, Tuesday, July 03, 2001, 10:05:47 AM, my MUA believes you used Internet Mail Service (5.5.2653.19) to write: CBT> Hi All CBT> Has anyone used ActivePerl's Perl Package Manager to install CPAN CBT> packages? I down loaded the Tk package and I am trying to install it locally CBT>

Log file creation

2001-07-03 Thread Tim Musson
perlpeople, Is it better to open a log file only when I need to write to it, or open it at the start, and close when done? A few thousand lines in the log... -- [EMAIL PROTECTED] Using The Bat! eMail v1.53d Windows NT 5.0.2195 (Service Pack 1) When in doubt, think.

Re[2]: ActivePerl PPM Question

2001-07-03 Thread Tim Musson
Hey Bill, I have never grabbed the .zip files from ActiveState. I always just run PPM and let it get the files... I believe you can do it manually, I just have never had a reason to try. At a guess, you may have problems locating the .ppm file? Tuesday, July 03, 2001, 10:53:38 AM, my MUA beli

Re: Editor

2001-07-03 Thread Tim Musson
Hey Bill, Tuesday, July 03, 2001, 3:33:42 PM, my MUA believes you used Microsoft Outlook Express 5.50.4522.1200 to write: BP> May I get some suggestions for any Windows-based PERL development BP> tools? Preferably, free ones? I like Vim www.vim.org and TextPad www.textpad.com. Both have conte

Re[2]: Using perl scripts on a non perl win32 machine

2001-07-04 Thread Tim Musson
Hey Jos, I would be interested in how you go about running it from the network. For instance, when you install it on a net drive, does @INC reflect the correct locations? Wednesday, July 04, 2001, 3:47:28 AM, my MUA believes you used Microsoft Outlook Express 5.50.4522.1200 to write: JIB> I'm n

Re: Confused

2001-07-04 Thread Tim Musson
Hey RL, Wednesday, July 04, 2001, 9:41:19 PM, my MUA believes you used QUALCOMM Windows Eudora Version 5.1 to write: snip -- RA> When I run it in my ActivePerl.exe window -- RA> nothing happens. Not sure what that is... Did you get your "ActivePerl.exe" window by running perl.exe from W

How to check it a $Var is empty

2001-07-05 Thread Tim Musson
perlers, I want to split to @Group only if the 3rd element of @Line has data. It works, but I get an error (Use of uninitialized value in split) using -w, strict, and diagnostics. Should I be doing this differently? I run this with a filename parm, and the file contains: uid1,cn 1,ua_bit_essd ui

Re[2]: How to check it a $Var is empty

2001-07-05 Thread Tim Musson
Hey Chas, Thursday, July 05, 2001, 1:16:05 PM, my MUA believes you used Evolution/0.10.99 (Preview Release) to write: >> I want to split to @Group only if the 3rd element of @Line has data. >> I would like to put nothing in $Group[-1] if $Line[2] is empty. >> >> while (<>) { chomp; >> my @

Re[2]: How to check it a $Var is empty

2001-07-05 Thread Tim Musson
Hey Jeff & Others, Thursday, July 05, 2001, 2:04:17 PM, my MUA believes you used (X-Mailer not set) to write: Thanks for the tip (don't my SOMETHING if CONDITION;). I got the same response from 2 people. Is there a reason I should pick one solution over the other? Or is this another case of T

Re: Another Newbie

2001-07-06 Thread Tim Musson
Hey Robert, Friday, July 06, 2001, 4:01:39 PM, my MUA believes you used Internet Mail Service (5.5.2650.21) to write: RO> Hi gang, RO> Can anyone recommend a good book/Website...something that could RO> point me into the correct direction. As others have suggested, I like Learning Perl, and t

Re: HOW to Send a mail

2001-07-06 Thread Tim Musson
Hey Suresh, Friday, July 06, 2001, 1:15:22 PM, my MUA believes you used (X-Mailer not set) to write: SBAS> Any one will help me out to send e-mail with the help of code in SBAS> my perl script. There are lots of ways, I happen to like this one. use Net::SMTP; sendMail(); sub sendMail { m

Re[3]: Editor

2001-07-06 Thread Tim Musson
Hey Luke, I would have to agree here. I was kind of pushed into learning vi (had to admin an AIX server). Boy, am I glad I did, it is by far my favorite editor. I now install Vim (www.vim.org) on every machine I use. However, I also use www.TextPad.com too. Friday, July 06, 2001, 4:47:02 PM, m

Re[2]: Net::ftp

2001-07-09 Thread Tim Musson
Hey Jorge, Monday, July 09, 2001, 5:36:33 AM, my MUA believes you used dtmail 1.3.0 @(#)CDE Version 1.4.2 SunOS 5.8 sun4u sparc to write: JG> Hi How I can install Net::ftp I try with ppm but I didn't find it JG> when I type search,I am under windows 98 and I wanted to install JG> a ftp client.

Re: SMTP - outgoing email

2001-07-09 Thread Tim Musson
Hey Stewart, There are many ways to do this. I usually use Net::SMTP, but there is also Net::Mailer (which I believe runs Net::SMTP for you), and Net::Sendmail (and I think this runs Net::Mailer?). I think you are missing the "datasend" To: & From: in your smtptest.pl Here is the Net::SMTP temp

Re[2]: SMTP - outgoing email

2001-07-09 Thread Tim Musson
Hey Michael, Monday, July 09, 2001, 7:35:04 PM, my MUA believes you used (X-Mailer not set) to write: >> There are many ways to do this. I usually use Net::SMTP, but there >> is also Net::Mailer (which I believe runs Net::SMTP for you), and >> Net::Sendmail (and I think this runs Net::Mailer?).

How to telnet into a Router

2001-07-13 Thread Tim Musson
Perl Guru's, I need to make some 250 one line changes (add port security) on a Cisco Router. I can build the commands with no problem, but I have never connected to a Cicso with Perl before. What module would I use? Net::Telnet? TIA -- [EMAIL PROTECTED] Using The Bat! eMail v1

Re: Windows Directory Parsing and Deleting

2001-07-21 Thread Tim Musson
\n\nStarting at $T[2]:$T[1]:$T[0]\n"); } =head1 NAME - Archive network file system files =head1 SYNOPSIS B reads (or creates if it does not exist) DriveCleanup.xml - the configuration file. Then moves files to another directory, maintaining the directory structure, for archive. =head1 D

Re: Still can't get this !@#$%^&* to work

2001-07-21 Thread Tim Musson
Hey Tom, Wednesday, July 18, 2001, 10:25:02 AM, my MUA believes you used (X-Mailer not set) to write: TY> Hey all, Okay, I'm still trying to get this log file script to TY> work. The end result should just be, if it's the 18th, the log TY> file should be 09FIMSOM090Aevent-20010717.log. How

Re: How to send a notification mail from Windows/NT?

2001-07-21 Thread Tim Musson
Hey David, Thursday, July 19, 2001, 9:27:19 PM, my MUA believes you used Internet Mail Service (5.5.2653.19) to write: ND> Hi, ND> When I use the following script to send mail: ND> #!perl -w use Strict; # here? use Diagnostics; # here? ND> ### script name "smtp_mailer2.pl" ND> use Net::SMTP;

Re[2]: ActivePerl - how does one configure for HTML

2001-07-21 Thread Tim Musson
Monday, July 16, 2001, 4:23:26 PM, my MUA believes you used (X-Mailer not set) to write: BWM> On Mon, 16 Jul 2001, Stout, Joel R wrote: >> WinNT comes with "Personal Web Server" (PWS) which is how I'm learning Perl >> CGI. You can put your scripts in C:\Inetpub\wwwroot\cgi-bin. You can then >>

Re: Get MAC address from Win32 Machine

2001-10-25 Thread Tim Musson
Hey Mike, My MUA believes you used (X-Mailer not set) to write the following on Wednesday, October 24, 2001 at 5:01:29 PM. MR> Hi all -- MR> I need to gather the MAC address from some win32 MR> machines. Which module would you recommend? MR> Is Win32::NetAdmin the right one? I would probabl

Re: learning perl

2001-10-25 Thread Tim Musson
Hey Daniela, My MUA believes you used (X-Mailer not set) to write the following on Thursday, October 25, 2001 at 10:15:32 AM. DMA> where can i obtain the software to install it DMA> in my machine w95 or w2000?? www.activestate.com It comes with Doc's (perldoc, and c:\perl\html\index.html) DMA

Re[2]: How to run DOS batch files or DOS commands in the Perl script

2001-11-24 Thread Tim Musson
Hey Jason, My MUA believes you used (X-Mailer not set) to write the following on Friday, November 09, 2001 at 9:00:17 PM. You can use %ENV to access the environment (variables). foreach $env_var (sort keys %ENV) { print "$env_var = $ENV{$env_var}\n"; } JYh> Hi Alfred, Base on your answer

How to get config file via http

2004-08-31 Thread Tim Musson
one to do what I want... Thanks! -- Tim Musson Flying with The Bat! eMail v2.12.00 Taxpayer: Someone who doesn't have to take a public service exam to work for the government. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://lear

Re: How to get config file via http

2004-08-31 Thread Tim Musson
about it: CD> use LWP::Simple; CD> unless (defined ($content = get $URL)) { CD> die "could not get $URL\n"; CD> } CD> Make sense? Yep, I also noticed Net::HTTP. Any reason I should use one over the other? btw all, thanks for the quick response!

Re: How to get config file via http

2004-08-31 Thread Tim Musson
Hey Chris, My MUA believes you used to write the following on Tuesday, August 31, 2004 at 3:20:50 PM. CD> On Tue, 31 Aug 2004, Tim Musson wrote: >> CD> use LWP::Simple; 8< snip >> Yep, I also noticed Net::HTTP. Any reason I should use

Re: How to get config file via http

2004-09-01 Thread Tim Musson
) { | # do stuff, for example... | print "$line\n"; | } `- -- Tim Musson Flying with The Bat! eMail v2.12.00 To err is human; To moo is bovine. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: How to get config file via http

2004-09-01 Thread Tim Musson
the output though. I need to process it then print the line in one column of a table with the results of another process in another column. Thanks for your help! -- Tim Musson Flying with The Bat! eMail v2.12.00 Ever stop to think, and forget to start again? -- To unsubscribe, e-mail:

CSV type data into hash?

2004-09-21 Thread Tim Musson
= ( Name => uas123 Location => 123 street Function => Mail IPAddress => 10.11.12.13 ) Hmmm, I wonder if I just answered my own question by writing it down. Thanks for any input/suggestions you may have! -- Tim Musson Flying with The Bat! eMail v2.12.00 Cannot open f

How to process blank line delimeted blocks of text?

2004-10-11 Thread Tim Musson
of the members of the security groups daily and a diff of yesterdays report from todays. Thanks for any suggestions you may have. btw, I am running this on MS, but if you have *nix examples, I can work with that too. Thanks again! -- Tim Musson Flying with The Bat! eMail v2.12.00 The days of the

Re: How to process blank line delimeted blocks of text?

2004-10-13 Thread Tim Musson
Hey Luke, BL> Will this work? Yes, that did the trick, thanks! BL> { BL> local $/ = "\n\n"; BL> while () BL> { BL> for $line (split /\n/, $_) BL> { BL> # process lines in a dn section here BL> next unless $line =~ /^(dn:|member:|group

Help parsing on Columns...?

2005-03-09 Thread Tim Musson
*GroupC *GroupD |*GroupE | Local group memberships*RConsole Users *Users |*Administrators `- Thanks! -- Tim Musson Flying with The Bat! eMail v2.12.00

How to split on case boundries?

2002-02-21 Thread Tim Musson
Hey all, My current source looks like this ua_bit_essd_si I split on _ into @dpt. The people who control the data want to remove the _ chars and make the delimiter based on the case of the chars (first char of each part is uc, all others are lc)... So the source would look like this UaBitE

Re: How to split on case boundries?

2002-02-22 Thread Tim Musson
Hey Jeff, My MUA believes you used (X-Mailer not set) to write the following on Thursday, February 21, 2002 at 2:13:31 PM. JjP> On Feb 20, Tim Musson said: >>The people who control the data want to remove the _ chars and make >>the delimiter based on the case of the chars (fir

Re: Maestro Schmitter

2002-03-16 Thread Tim Musson
Kim, Thank you for the note. Please send on when the services are, I do want to attend. My MUA believes you used Microsoft Outlook Express 5.50.4133.2400 to write the following on Saturday, March 16, 2002 at 3:59:43 PM. KR> I received this from Fred Freiheit this morning. KR> Kim Rahl KR> <

Bit reversal of MAC Address bytes...

2002-03-18 Thread Tim Musson
hey perl guru's, I have need to do a bit reversal of a MAC address (some Token Ring to Ethernet thing) and am stumped. Cisco has an app on their web site if you can log in, but not everyone can log in, and I am not always attached... So I was thinking I would build one myself, but not

Re: Bit reversal of MAC Address bytes...

2002-03-19 Thread Tim Musson
Hey David, My MUA believes you used Microsoft Outlook, Build 10.0.2627 to write the following on Monday, March 18, 2002 at 4:22:02 PM. >> 1. How do I brake the MAC Address up into bytes? DG> I'm not exactly sure what format you're getting the MAC address in, but DG> it looks like you're just s

Re: Bit reversal of MAC Address bytes...

2002-03-19 Thread Tim Musson
Thanks to all who sent pointers! Here is my code before I put it up as a web page tool (and clean it up and comment it ). comments/suggestions anyone? #!perl -w use strict; use diagnostics; my $debug = "yes"; my (@mac); my $mac = "0123 6789 cdef"; $mac =~ s/\s//g; my $i = 0; while($mac =~ /(.{

Re: Easy CMD window

2002-03-25 Thread Tim Musson
Hey zentara, My MUA believes you used (X-Mailer not set) to write the following on Sunday, March 24, 2002 at 9:08:02 AM. z> On Sun, 24 Mar 2002 03:31:17 -0800, [EMAIL PROTECTED] (Gary Hawkins) z> wrote: >>Is there a way to set up for starting a CMD window using a right click within >>that folder

Re: Net::SNMP module example failing

2002-04-25 Thread Tim Musson
Hey Ted, My MUA believes you used (X-Mailer not set) to write the following on Wednesday, April 24, 2002 at 9:56:09 PM. TH> Hello, TH> I'm executing the 1st example (get sysUpTime) in the TH> Net::SNMP module at TH> http://search.cpan.org/doc/DTOWN/Net-SNMP-4.0.1/lib/Net/SNMP.pm TH> The exampl

Re: CPAN?

2002-04-30 Thread Tim Musson
Hey Bryan, My MUA believes you used Lotus Notes Release 5.0.5 September 22, 2000 to write the following on Thursday, April 25, 2002 at 1:41:05 PM. BRH> This is the beginners list, right? Yep BRH> I heard that you could find code for almost anything at CPAN. How do you BRH> go about this? Go

Re: Name resolution from IP

2002-04-30 Thread Tim Musson
Hey John, My MUA believes you used Internet Mail Service (5.5.2655.55) to write the following on Tuesday, April 30, 2002 at 9:32:33 AM. JE> How can I resolve a machine name from an IP address? The machine JE> that the script is running on is NT4. JE> I've tried this (with use Socket qw(:DEFAULT

Re: Please Help

2002-04-30 Thread Tim Musson
Hey Josef, My MUA believes you used Microsoft Outlook Express 5.50.4133.2400 to write the following on Tuesday, April 30, 2002 at 3:37:35 PM. JEG> Thanks for your reply Dave. Now I am getting 'No such file or JEG> directory' when i am sure that the file exists JEG> I changed line 1 to: JEG> $fil

Re: Aerial and Satellite immages

2002-05-03 Thread Tim Musson
Hey LeeRM43, My MUA believes you used Atlas Mailer 2.0 to write the following on Friday, May 3, 2002 at 7:13:49 AM. Lac> Check out the overhead view of your house at: Lac> terraserver.homeadvisor.msn.com Lac> Do not put WWW in front of the above. You get a better photo from www.Mapquest.com H

Re: Aerial and Satellite immages

2002-05-03 Thread Tim Musson
Hey Tim, My MUA believes you used The Bat! (v1.60h) Personal to write the following on Friday, May 3, 2002 at 7:37:43 AM. TM> Here is my house... Sorry, looks like a mail template got away from me... -- [EMAIL PROTECTED] MUA = TB! v1.60h (www.RitLabs.com/The_Bat) Windows 2000 5.0.2195 (Servic

Re: Aerial and Satellite immages

2002-05-03 Thread Tim Musson
Hey John, My MUA believes you used (X-Mailer not set) to write the following on Friday, May 3, 2002 at 8:32:28 AM. JB> How did you get the aerial photo? I can't find any links to show JB> ariel photos when I start over with my own location. at mapquest, bring up your street, the just above the m

Re: Mail?

2002-05-11 Thread Tim Musson
Hey Bill, My MUA believes you used Microsoft Outlook Express 6.00.2600. to write the following on Saturday, May 11, 2002 at 9:48:14 PM. BL> I'm making a script that will sent info to a user verify. BL> like this $MAIL->>datasend('.$fname'."\n"); BL> is this correct or not BL> Also I need

Re: help!

2002-05-18 Thread Tim Musson
Hey Haitham, My MUA believes you used Microsoft Outlook Express 6.00.2600. to write the following on Friday, May 17, 2002 at 10:08:48 PM. HNT> Hi, I am working on a chunk of PERL software that can find out HNT> the groups of consecutive numbers located within a list. For HNT> instance imagin

use warning; vrs diagnostics;

2002-05-18 Thread Tim Musson
Hey all, I have noticed people suggesting/using the 'use warnings;' statement, and I had been using the 'use diagnostics;' statement. I started the 'diagnostics' thing based on reading this list a number of months ago. Now the recomendation seems to have changed. Is that true, and if

  1   2   >