Re: Bareword

2002-01-15 Thread Dennis G. Wicks
Greetings; I copy/pasted your script into EDIT running in a DOS box on NT 4.0 and it works fine. I am using Active Perl. Do any Perl things work on your system? Try typing it in from scratch using some vanilla editor like DOS EDIT or notepad (not wordpad!) and see if that makes a diff. You may

Re: Greedy 'split' ???

2002-01-17 Thread Dennis G. Wicks
What happens when you get something like ww10.software.mirror.qrp.org.de ?? > > try this : > (my $DOM_NAME, my $TLD) = split(/\./, $domain, 2); > #split on '.', onlu into 2 pieces > > (yes this is me answering my own question. . . . .) > > -Original Message- > From: Scott Lut

Using perl with procmail

2002-01-25 Thread Dennis G. Wicks
Greetings; I am getting a lot of email with munged dates in it and I would like to fix them by grabbing them with procmail and passing them to a perl program to update the Date: string. First, is this possible? Can I pass an email to perl and then update it in the mail spool? If I can't, then I

RE: What is the newline character (\n) equal to?

2002-01-31 Thread Dennis G. Wicks
I got the same results using ActiveState on NT 4.0 but cyqwin gives me: length is 4 -rw-r--r--1 dennis None5 Jan 31 10:02 foo.txt length is 5 length is 5 I will leave the analysis to someone more qualified than I! Good Luck! Dennis -- To unsu

Re: make a executable with a perl file in windows

2002-02-01 Thread Dennis G. Wicks
On NT you put the extension in the environment variable PATHEXT along with COM BAT EXE and such. There is a similar facility in 95/98/ etc. but I don't know what they are. Good Luck! Dennis >}On Feb 1, 16:44, Booher Timothy B 1stLt AFRL/MNAC wrote: >} Subject: make a executable with a perl file

Re: run from command line

2002-02-06 Thread Dennis G. Wicks
Strange. Works for me! Is bomb1.txt writeable? What system are you running on? I tried it on linux/390 and cyqwin on NT4.0. >}On Feb 6, 15:58, Booher Timothy B 1stLt AFRL/MNAC wrote: >} Subject: run from command line >--_=_NextPart_001_01C1AF59.63C9E350 >Content-Type: text/plain; > cha

procmail or perl to drop dups?

2002-02-08 Thread Dennis G. Wicks
Greetings; Has anyone developed any method to drop messages that are cross-posted to both [EMAIL PROTECTED] and [EMAIL PROTECTED]? Care to share? Thanks, Dennis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

CPAN won't install YAML and others

2009-06-20 Thread Dennis G. Wicks
Greetings; YAML is not installed on my Lenny system and when I try to install it (with perl -MCPAN -e shell) I get the following errors after the source has been unpacked. Any ideas? Thanks for any help! Dennis BTW : cardinal:~# ls -l /root/.cpan/build/YAML-0.68-DEj5Ee/META.yml -rw-r--r-- 1

Re: CPAN won't install YAML and others

2009-06-20 Thread Dennis G. Wicks
Bruce Ferrell wrote the following on 06/20/2009 01:38 PM: Dennis G. Wicks wrote: Greetings; YAML is not installed on my Lenny system and when I try to install it (with perl -MCPAN -e shell) I get the following errors after the source has been unpacked. Any ideas? Thanks for any help

Need help with Email::Send

2009-06-21 Thread Dennis G. Wicks
Greetings; I can't seem to find the problem with the Email::Send portion of this program. It may be that I am getting an error from the smtp server but I haven't been able to adapt an error routine that works with Mail::Sender to work with Email::Send. Anybody have any insights? Many thank

Re: Need help with Email::Send

2009-06-22 Thread Dennis G. Wicks
Jeff Pang wrote the following on 06/21/2009 09:51 PM: 2009/6/22 Dennis G. Wicks : Greetings; I can't seem to find the problem with the Email::Send portion of this program. It may be that I am getting an error from the smtp server but I haven't been able to adapt an error routine

Need help w/ substitute ie. s/x/y/

2009-07-03 Thread Dennis G. Wicks
Greetings; I have a file of 100+ records like the following. I hope the line wrap doesn't mess things up too much. http://www.ten.com/"; target="_blank">|| ,http://www.ten.com/"; target="_blank">|Link Text Message| <-($1)--->|<-($2)

Re: Need help w/ substitute ie. s/x/y/

2009-07-03 Thread Dennis G. Wicks
Gunnar Hjalmarsson wrote the following on 07/03/2009 07:34 PM: Dennis G. Wicks wrote: Greetings; I have a file of 100+ records like the following. I hope the line wrap doesn't mess things up too much. http://www.ten.com/"; target="_blank">|border="0">| ,

Re: Need help w/ substitute ie. s/x/y/

2009-07-06 Thread Dennis G. Wicks
ot test that, but I guess you'll get the meaning. :-) HTH -- Eric "Dennis G. Wicks" wrote on 07/04/2009 03:10:45 AM: From: "Dennis G. Wicks" To: beginners@perl.org Date: 07/04/2009 03:11 AM Subject: Re: Need help w/ substitute ie. s/x/y/ Gunnar Hjal

Looking for sample/demo site conforming to LAMP model ...

2010-05-07 Thread Dennis G. Wicks
Greetings; Does anybody know of a sample/demo site that uses the LAMP model, and maybe has some tutorials? Something that is easy to understand? If it also uses the Template Toolkit that would be a big plus! Many TIA! Dennis -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For addi

Re: Looking for sample/demo site conforming to LAMP model ...

2010-05-09 Thread Dennis G. Wicks
David Christensen wrote the following on 05/07/2010 07:01 PM: Dennis G. Wicks wrote: Does anybody know of a sample/demo site that uses the LAMP model, and maybe has some tutorials? Something that is easy to understand? If it also uses the Template Toolkit that would be a big plus! I'd

How do I dynamically adjust to CSV format?

2008-03-25 Thread Dennis G. Wicks
Greetings, I get data in CSV files from several different sites and I can't get the date/time formats to be consistent, let alone have the fields arranged in the same order. I can put in the field/column names by hand in a first record but I can't find hoe to go about using them to change m

Re: How do I dynamically adjust to CSV format?

2008-03-26 Thread Dennis G. Wicks
Thanks for that. Maybe not "sneaky" but definitely very clever! That solved my problem a lot easier than I thought it could be. Again, Thanks! Dennis Chas. Owens wrote the following on 03/25/2008 08:50 PM: On Tue, Mar 25, 2008 at 9:22 PM, Dennis G. Wicks <[EMAIL PROTECTED]> w

Looking for mailer program

2009-02-22 Thread Dennis G. Wicks
Greetings; I have a couple of directories full of tips, photos, quotes, etc. that I want to send to a yahoo group that I have. What I want to do is compose the email, pick an item or two from the directory, put it in the email & move it/them to a "used" directory and send the email. I'll fir

Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Dennis G. Wicks
Greetings; Here's the code: - #!/usr/bin/perl use strict; use warnings; use Mail::Builder::Simple; my $mail = Mail::Builder::Simple->new; # Send the email with an SMTP server: $mail->send( mail_client => { mailer =

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Dennis G. Wicks
Gunnar Hjalmarsson wrote the following on 02/24/2009 12:41 PM: Octavian Râsnita wrote: From: "Dennis G. Wicks" > Greetings; Lacking any problems with the code, does anybody have any ideas about what may be stopping this from working? The code looks fine. There could be

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Dennis G. Wicks
[Cleaned out previous stuff] Greetings; Well, I tried to attach the port to the server address, Host => 'smtpout.secureserver.net:3535', but that doesn't work either. Maybe there is something else setup wrong that I'm not seeing. I also was going to try Mail::Sender but I can't get a cl

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Dennis G. Wicks
We now return you to the original problem! I got the sample that Gunnar posted using Mail::Sender to work after I played around with cpan and got it installed. Now I have discovered a new problem. The SMTP server does not respond on the first try all the time. (I think this is a local proble

Re: looking for an apache stats system.

2004-03-19 Thread Dennis G. Wicks
One that has been recommended to me is Analog http://www.analog.cx/ But, it isn't written in perl! :-( On Fri, 19 Mar 2004, Jose Blanco wrote: > Date: Fri, 19 Mar 2004 10:58:57 -0500 > From: Jose Blanco <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: looking for an apache stats sy

Re: Check on array return result

2004-06-01 Thread Dennis G. Wicks
Greetings; I keep getting a warning "Use of uninitialized value in string ..." and I can't find a way to eliminate it. Here is my code and the latest effort. foreach () { chomp; s/^ *//; ($rank, $artist) = split(/ /, $_, 2); >> if ($name{$artist} eq "") {$cnt

Unitialized variable; was Re: Check on array return result

2004-06-01 Thread Dennis G. Wicks
On Tue, 1 Jun 2004, Jeff 'japhy' Pinyan wrote: > On Jun 1, Dennis G. Wicks said: > > >Greetings; > > Please start a new thread next time, instead of replying to a post and > creating a new topic. OK, so I screwed up. Mea culpa! > > > for

Re: Confused about supplying command line arguments and using @ARGV

2004-06-03 Thread Dennis G. Wicks
Greetings; Are you using ActiveState perl? I just did extensive testing using ActiveState perl on XP-Pro and I get the exact same results. C:\DATAFI~1>argv.pl testfile gives the unitialized variable message but C:\DATAFI~1>perl argv.pl testfile works as expected. I also teste

Looking for "\n" shortcut.

2004-06-03 Thread Dennis G. Wicks
Greetings; Is there a shortcut or option or something that will let me not have to type "\n"; so often? I am not the worlds best typist and I need all the help I can get! Many TIA, Dennis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Extra newline characters.

2004-10-08 Thread Dennis G. Wicks
Whoa! Easy big fella! sdf.lonestar.org is a *FREE* public access system. No reason for secrecy or alarm. Notice the *FREE* and remember, you get what you pay for. And they do tell you about using ssh for access when you initially sign up. On Fri, 8 Oct 2004, Chris Devers wrote: > Date: Fri, 8

Re: Same Internal Server Error from last two days

2006-07-28 Thread Dennis G. Wicks
On Fri, 28 Jul 2006, Dr.Ruud wrote: > Date: Fri, 28 Jul 2006 14:13:48 +0200 > From: Dr.Ruud <[EMAIL PROTECTED]> > To: beginners@perl.org > Subject: Re: Same Internal Server Error from last two days > > Ranish George schreef: > > > > Have you tried changing the shebang line as I have mentioned i

Re: Same Internal Server Error from last two days

2006-07-28 Thread Dennis G. Wicks
On Fri, 28 Jul 2006, Dr.Ruud wrote: > "Dennis G. Wicks" schreef: > > > Apache requires the shebang line for cgi > > scripts and it must point to perl. > > Unless you tell Apache to not look at the shebang. > > Open your httpd.conf file and uncomment the l

Need help w/ reqexp, capture and substitue

2006-10-29 Thread Dennis G. Wicks
Greetings; I frequently have to convert some address books from one format to another. This is what I need to do. Input records are like this: [EMAIL PROTECTED]&Thu Oct 26 07:20:03 2006&1&&& The output record needs to be like this: [EMAIL PROTECTED]&Thu Oct 26 07:20:03 2006&1&wix&&&

Re: Need help w/ reqexp, capture and substitue

2006-10-29 Thread Dennis G. Wicks
Shawn Milochik wrote: This seems to work for me: #!/usr/bin/perl -w use strict; while () { chomp; print "Original: $_\n"; $_ =~ s/^([EMAIL PROTECTED])(@.+&\d+&)([&]{5})/$1$2$1$3/; print "Modified: $_\n"; } Hope it helps. Shawn Thanks Shawn! That works pe

Re: windows perl just doesn't seem to work

2002-02-13 Thread Dennis G. Wicks
Greetings; Just for future reference, the Windows command line is not good for perl things. The use of quotes and escapes is mostly undocumented and from experience I can say that even when you think you have it figured out you will find another situation where it doesn't work. It only takes a fe

RE: Help me out

2002-02-14 Thread Dennis G. Wicks
NO! Don't use Matt's Script Archive!!! That code is old and full of errors. Go to http://nms-cgi.sourceforge.net/ and you will find "the rest of the story" and equivalent scripts that are well written and tested. Also, check out http://perl.about.com/ for some good

printing "\n" automagically?

2002-02-15 Thread Dennis G. Wicks
Greetings; Is there any easy way to get print to do a "\n" without coding it explicitly? Most of the code fragments posted don't have any line feeds in the print statements and without them the output gets all strung together, overlaid with the prompt, interspersed with messages from the mail se

RE: printing "\n" automagically?

2002-02-15 Thread Dennis G. Wicks
Thanks! That works great! But!!!: [root@iodine root]# man perlvars No manual entry for perlvars [root@iodine root]# perldoc perlvars No documentation found for "perlvars". [root@iodine root]# ???, Dennis >}On Feb 15, 9:33, Nikola Janceski wrote: >}

Re: multiple __DATA__ entries possible?

2002-02-15 Thread Dennis G. Wicks
That would be great! Unfortunately, none of the fragments posted so far work as written! Looking forward to testing your solution! Thanks, Dennis >}On Feb 15, 13:18, "Jeff 'japhy' Pinyan" wrote: >} Subject: Re: multiple __DATA__ entries possible? > >Sounds like you might want the Inline::File

Re: multiple __DATA__ entries possible?

2002-02-15 Thread Dennis G. Wicks
multiple __DATA__ entries possible? >On Fri, Feb 15, 2002 at 01:09:32PM -0800, Dennis G. Wicks wrote: >> Unfortunately, none of the fragments posted so far work as >> written! > >None? The example I gave works just fine. > > >Michael >-- >Administrator

qw for variables?

2002-02-19 Thread Dennis G. Wicks
Greetings; I can get qw to work for things like @n = qw( john jacob jingleheimer schmidt ); but something like @n = qw( $names ); doesn't work. I get the literal string "$names" in @n! What does the equivalent of qw(???) for a variable? Many TIA! Dennis -- To unsubscribe,

Re: qw for variables?

2002-02-19 Thread Dennis G. Wicks
Greetings; No, I mean if $names contains "Jesus Mary Joseph" and I do my @n = qw( $names ); I want the same results as if I had done my @n = qw( Jesus Mary Joseph ); Obviously qw() does not work this way, but I can't find the equivalent that does. Thanks, Dennis >}On Feb 19,

Re: qw for variables?

2002-02-19 Thread Dennis G. Wicks
The split did the trick, and cut out a few lines of code also. I had already done some splits and joins to get ready for qw() which I can n ow delete! Thanks for the help everyone! Dennis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Looking for someone to install perl scripts

2002-02-21 Thread Dennis G. Wicks
This reminds me of an antacid commercial on TV, because technically, You just did! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

TIMTOWDI Was: RE: some questions about for, foreach

2002-03-01 Thread Dennis G. Wicks
It is really sad when people can't get their MLA (Multi-Letter Acronym) correct! It should be TIMTOWTDI "There Is More Than One Way To Do It" which is the Perl Hackers motto. Good Luck! Dennis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Comparing to many possibles

2002-03-04 Thread Dennis G. Wicks
Greetings; Is there some perl shorthand that will make it easier to say if ( $x eq 'X' || $x eq 'Y' || $x eq 'Z' ) TIA, Dennis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Comparing to many possibles

2002-03-04 Thread Dennis G. Wicks
t; Well, today it is just three, but next week who knows? >On Mon, 4 Mar 2002, Dennis G. Wicks wrote: > >> Greetings; >> >> Is there some perl shorthand that will make it easier to say >> >> if ( $x eq 'X' || $x eq 'Y' || $x eq 'Z

database recommendations?

2002-03-05 Thread Dennis G. Wicks
Greetings; It sounds like there are two main dbms in common use; PostgreSQL and mysql. What are the preferences of the group members? Are there any major or important differences between them? Any religious issues? ;-) Thanks for any info, Dennis -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Hacking perldoc

2002-03-06 Thread Dennis G. Wicks
Greetings; Has anyone ever considered hacking perldoc so it can work like man -k ? I looked at it a little but it is still beyond my capabilities "a bit". This would be a big help to us Perl beginners. Every time I try to use it I get a response like No documentation found for "remaind

RE: How to do a cron job?

2002-04-15 Thread Dennis G. Wicks
Greetings; For ssh access get Tera Term and the SSH extensions. I use it both at home and at work and it works and is simple to set up. You can find them using Google. Good Luck! Dennis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Getting contens of file into a hash

2002-04-29 Thread Dennis G. Wicks
Greetings; Thanks for all that tuteledge. Now if you could expand it to handle # processors: 3 col 1...5...105...20 that would be great! Apparently on my ver of linux something is supposed to see this as a comment and ignore it. TIA, Dennis >}On Apr 29, 14:12, Michael Lamert

Re: Perldoc

2002-05-16 Thread Dennis G. Wicks
Yes, perldoc is only useful if you already know what you are looking for! Some perlmeister should come up with something that does a real search for terms in the things that perldoc knows about that works something along the lines of man -k. For instance, contrast man float with man -k float. Unt

One liner to change one line

2007-08-15 Thread Dennis G. Wicks
Greetings; I have, conservatively, dozens of html files to change. I can find them and pass the file name to perl and do the usual s/// changes but there is one change I can't figure out. There is a line in each file that looks like This-Is-The-Title of course, they are all different! Ho

Re: Hi All

2005-11-16 Thread Dennis G. Wicks
On Wed, 16 Nov 2005, Shawn Corey wrote: > Date: Wed, 16 Nov 2005 08:34:16 -0500 > From: Shawn Corey <[EMAIL PROTECTED]> > To: beginners@perl.org > Subject: Re: Hi All > > Randal L. Schwartz wrote: > >>"Hridyesh" == Hridyesh Pant <[EMAIL PROTECTED]> writes: > > > > > > Hridyesh> Check this sit

Looking for a perl wiki or BBS

2005-11-18 Thread Dennis G. Wicks
Greetings; I am looking for a wiki or BBS system written in perl but I'm not having much luck. There are a lot written in PHP but the perl ones are hard to find. Does anyone have any particular favorites they would suggest I look at? Many TIA! Dennis -- To unsubscribe, e-mail: [EMAIL PROTECTE

Need help sorting by specific fields in file.

2004-02-02 Thread Dennis G. Wicks
Greetings; I have a file that I need to sort and currently I am just sorting it by @datalist = sort(@datalist); but it will eventually have many more records and many of them may be quite large, but I only need to sort on the first six characters which would be faster. Wouldn't it? I have

Re: Need help sorting by specific fields in file.

2004-02-02 Thread Dennis G. Wicks
wrote: > Date: Mon, 2 Feb 2004 14:14:31 -0600 > From: Eric Edwards <[EMAIL PROTECTED]> > To: Dennis G. Wicks <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Subject: Re: Need help sorting by specific fields in file. > > Dennis, > Not to tell you how to run your business,

Re: Perl Cgi/ Why?

2002-12-12 Thread Dennis G. Wicks
Greetings; Mainly because of flexibility, but also because it is a technology that is widely and freely available and not proprietary. I commonly use one of several different platforms; Win-ME with Apache & ActiveState Perl, WinNT w/Apache & cygwin Perl, WinNT w/Apache & ActiveState Perl, one ISP

Re: speed and perl

2002-08-02 Thread Dennis G. Wicks
On Fri, 2 Aug 2002, Jenda Krynicky wrote: > > Computing power is cheap, programmers' time is expensive! > Yes, but the programmer's time is only used once. CPU cycles are used again and again and again ... The cost of inefficient programs is cumulative and results in increasing all the i

RE: Php perl?

2003-04-01 Thread Dennis G. Wicks
Greetings; Someone complained about Perl not being self-documenting. As one who does not know C, C++, VB, Perl, or even Basic very well, I would like to remind you that any specific computer language is only self-documenting if you know it! Good Luck! Dennis -- To unsubscribe, e-mail: [EMAIL P

Re: Project Management

2003-04-02 Thread Dennis G. Wicks
Greetings; Have you tried sourceforge.net? I just did a search there on "project management application" and got a lot of hits. Also, many of the things there are written in Perl and all are GPL'd or similar. Good Luck! Dennis On Tue, 1 Apr 2003, Paul Kraus wrote: > Date: Tue, 1 Apr 2003 16:4

Re: ? about this NG speed.

2003-09-10 Thread Dennis G. Wicks
On Wed, 10 Sep 2003, Ramprasad A Padmanabhan wrote: > Date: Wed, 10 Sep 2003 14:02:07 +0530 > From: Ramprasad A Padmanabhan <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > Cc: 'Rodney Wise' <[EMAIL PROTECTED]> > Subject: Re: ? about this NG speed. > > Paul Kraus wrote: > > Don't