Re: starting perl

2004-05-02 Thread John W . Krahn
On Sunday 02 May 2004 19:35, [EMAIL PROTECTED] wrote:
>
> Just some background on my list...Those modules listed on my
> signature

To be a valid signature it must begin with the string "-- \n" so 
technically there is no signature in your postings.  :-)


John
-- 
use Perl;
program
fulfillment


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: starting perl

2004-05-02 Thread WilliamGunther
>Hi William and all,

Hi


>
>> Most Useful Perl Modules
>> -strict
>> -warnings
>why is it everyone keeps suggesting use warnings when you could use
>diagnostics and get a whole lot of more info?
>I'd go for the diagnostics instead of the warnings module. Does this
>have any negative side effects (besides working towards the title of
>most-annoying-know-it-all) or why exactly is everyone advising warnings
>over diagnostics?

Just some background on my list...Those modules listed on my signature are 
for the benefit of people new to Perl that are curious about what modules to 
look at. There's not the only ones I suggest using, but I think they are in fact 
so useful to development and some common situations that I put them on my 
signature, and continue to add to it whenever I find something cool (added 
DBD::SQLite a couple weeks ago because it is AWESOME. Use it if you don't already)

That being said, I will never put diagnostics on my list. I hate diagnostics. 
I think it's longwinded, and it's generally general statements about problems 
are ignorant. It always fogs up my output. Look at the output of "use 
diagnostics; print $i;". If anyone likes diagnostics, sorry. TMTOWTDI. I like 
warnings and it's usually one line SUGGESTIONS. My code always begins "use strict; 
use warnings;" and I ain't changing it.

>
>Stephan
>
>
>

-will 
http://www.wgunther.tk
(the above message is double rot13 encoded for security reasons)

Most Useful Perl Modules
-strict
-warnings
-Devel::DProf
-Benchmark
-B::Deparse
-Data::Dumper
-Clone
-Perl::Tidy
-Beautifier
-DBD::SQLite 


Re: Setup Forwarding

2004-05-02 Thread Mike Blezien
thx's that's what I thought, just wanted to make sure :)



Wiggins d'Anconia wrote:
Mike Blezien wrote:

Hello,

Need to setup a script to read incoming email that will be addressed 
something like this: [EMAIL PROTECTED] these are not actual POP 
account or aliases, but created within a membership system that will 
create a email address with their username and "mydomain.com"  Server 
Info: FreeBSD 4.8

What we would like to do is setup a script that will be piped from 
file, like a .forward file that will pipe this to a script, IE
*: "|/path/to/some_script.cgi"

So all emails sent to the "mydomain.com" that is not a valid POP or 
aliases, will be piped to this script. My question is, can a .forward 
file be used on a FreeBSD 4.8 server ?? I've done it on a RH/Linux 
system before and using the Mail::Audit module. Was wondering if 
someone on the list has setup something similar on this type of server.

Any help much appreciated :)

TIA


The underlying OS won't matter, what matters is the server software 
listening on the mail port (25).  Assuming both are sendmail (at least I 
am assuming that is what the Linux box uses) then there should be no 
difference.  I would check that the SMTP server software is the same, 
versions match, and configurations are similar. If they aren't then you 
should be able to get them configured the same, but then we are getting 
really off topic

http://danconia.org



--
MikeBlezien
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
http://www.thunder-rain.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Setup Forwarding

2004-05-02 Thread Wiggins d'Anconia
Mike Blezien wrote:

Hello,

Need to setup a script to read incoming email that will be addressed 
something like this: [EMAIL PROTECTED] these are not actual POP 
account or aliases, but created within a membership system that will 
create a email address with their username and "mydomain.com"  Server 
Info: FreeBSD 4.8

What we would like to do is setup a script that will be piped from file, 
like a .forward file that will pipe this to a script, IE
*: "|/path/to/some_script.cgi"

So all emails sent to the "mydomain.com" that is not a valid POP or 
aliases, will be piped to this script. My question is, can a .forward 
file be used on a FreeBSD 4.8 server ?? I've done it on a RH/Linux 
system before and using the Mail::Audit module. Was wondering if someone 
on the list has setup something similar on this type of server.

Any help much appreciated :)

TIA
The underlying OS won't matter, what matters is the server software 
listening on the mail port (25).  Assuming both are sendmail (at least I 
am assuming that is what the Linux box uses) then there should be no 
difference.  I would check that the SMTP server software is the same, 
versions match, and configurations are similar. If they aren't then you 
should be able to get them configured the same, but then we are getting 
really off topic

http://danconia.org

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



Setup Forwarding

2004-05-02 Thread Mike Blezien
Hello,

Need to setup a script to read incoming email that will be addressed something 
like this: [EMAIL PROTECTED] these are not actual POP account or aliases, 
but created within a membership system that will create a email address with 
their username and "mydomain.com"  Server Info: FreeBSD 4.8

What we would like to do is setup a script that will be piped from file, like a 
.forward file that will pipe this to a script, IE
*: "|/path/to/some_script.cgi"

So all emails sent to the "mydomain.com" that is not a valid POP or aliases, 
will be piped to this script. My question is, can a .forward file be used on a 
FreeBSD 4.8 server ?? I've done it on a RH/Linux system before and using the 
Mail::Audit module. Was wondering if someone on the list has setup something 
similar on this type of server.

Any help much appreciated :)

TIA
--
MikeBlezien
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
http://www.thunder-rain.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: starting perl

2004-05-02 Thread Jeff Westman
You need to add perl to your %PATH% or give it an explicite path name such as
 
c:\> \perl\bin\perl -w -e "print \ "Hello, World!\n\";"
 
 
 
JW


Charlie davis <[EMAIL PROTECTED]> wrote:
>From what I can remember I am running MSDOS version 6.0 (I thank) and the version of 
>perl is perl 5.8

But when I type what it says in the book I am getting an error messagethat states that 
I have entered a bad command or filename
what I am entering is c:\> perl -w -e "print \ "Hello, World!\n\";"
And then I get the error message.

I must be doing something wrong but I can not figure out what it is.

-
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 

Re: CPAN pod2html: what does CPAN use for itself? RESOLVED

2004-05-02 Thread Michael C. Davis
At 10:30 PM 5/1/04 -0500, Michael C. Davis wrote:
>Hi, I have some modules and I want to have their POD output look like CPAN
>pages.  Does anyone know what CPAN uses to turn a submitted module into the
>web pages shown on search.cpan.org?
>
>The pod2html that comes with my perl distribution yields workable HTML,
>but, even if I manually add a link to the CPAN stylesheet, the output from
>pod2html is still lacking several things (mostly DIV CLASS= statements)
>that give the CPAN pages their distinctive look.
>

Pod::HtmlEasy produces pages that, while not relying on the CPAN css (which
could be considered either a plus or minus), are rendered in the current
CPAN style.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




startng perl

2004-05-02 Thread Charlie davis
Another question!

When I open my dos prompt it = opens  like this=20 C:\WINDOWS> would that make much 
different. Since it is not pointing = to the=20 Perl folder.


Re: Substitution/Regex problem

2004-05-02 Thread Cedric Godin
On Thursday 29 April 2004 10:31, Owen wrote:
> I would like to replace all instances of
>
>  @non_space_characters[non_space_characters] with
>  $non_space_characters[non_space_characters]
>
> The program below gets the first one only. How do I get the others?
>
> TIA
>
> Owen
> ---
> #!/usr/bin/perl -w
> use strict;
>
> my $line;
> while (){
> $line=$_;
> #$line=~s/(@)(\S+)(\[\S+\])/\$$2$3/g;
> $line=~s/(@)(\S+\[\S+\])/\$$2/g;
>
> print "$line\n";
>
> }
> __DATA__
> @[EMAIL PROTECTED]@banana[4];

don't be greedy ;-)

s/\@(\S+?\[\S+?\])/\$$1/g;

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




RE: starting perl

2004-05-02 Thread Charles K. Clarkson
Stephan Hochhaus <[EMAIL PROTECTED]> wrote:
:
: why is it everyone keeps suggesting use warnings when you
: could use diagnostics and get a whole lot of more info?
: I'd go for the diagnostics instead of the warnings module.
: Does this have any negative side effects (besides working
: towards the title of most-annoying-know-it-all) or why
: exactly is everyone advising warnings over diagnostics?

I recommend warnings over not using warnings at all
(and over -w). diagnostics is great, but after a while I
got used to what to look for and didn't need it any more.


HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: starting perl

2004-05-02 Thread Stephan Hochhaus
Hi William and all,

Most Useful Perl Modules
-strict
-warnings
why is it everyone keeps suggesting use warnings when you could use 
diagnostics and get a whole lot of more info?
I'd go for the diagnostics instead of the warnings module. Does this 
have any negative side effects (besides working towards the title of 
most-annoying-know-it-all) or why exactly is everyone advising warnings 
over diagnostics?

Stephan

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: starting perl

2004-05-02 Thread WilliamGunther
In a message dated 5/2/2004 9:08:37 AM Eastern Daylight Time, 
[EMAIL PROTECTED] writes:
>I am a beginner here with learning perl. I have downloaded a perl program 
that also came 
>with apache and the installer to install t hem. But when I try and run the 
hello world 
>program in dos it dose not work. I am getting an error that it could not be 
found.
>
>anyone have any idea what I could have done wrong? 
>

Tell us what you're running in dos exactly. Copy and Paste the whole dang 
thing.
-will 
http://www.wgunther.tk
(the above message is double rot13 encoded for security reasons)

Most Useful Perl Modules
-strict
-warnings
-Devel::DProf
-Benchmark
-B::Deparse
-Data::Dumper
-Clone
-Perl::Tidy
-Beautifier
-DBD::SQLite 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




starting perl

2004-05-02 Thread Charlie davis
I am a beginner here with learning perl. I have downloaded a perl program that also 
came with apache and the installer to install t hem. But when I try and run the hello 
world program in dos it dose not work. I am getting an error that it could not be 
found.

anyone have any idea what I could have done wrong?