I posted this on the PDK mailing list but only got one reply. I'd like a
2nd opinion before I re-code!
Thanks,
Lee
(post, other reply & dialog follows)
> -Original Message-----
> From: Lee Clemmer [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 2:4
>Biggest problems is figuring out how it needs to be configured. I
>didn't have much luck in configuring Apache for Linux.
>
>Shain
If you don't want to use Apache there are several *excellent*
lightweight servers that are completely painless to set up. They have
far fewer features, but you likel
>You can do it right at the command line...
Now why would we want do to something that fast & easy?! ;)
Lee
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Lee Clemmer <[EMAIL PROTECTED]> wrote:
>> s/$search/$newstr/i
>You might want to modify this to
>s/$search/$newstr/igo
Ah, I realized after I sent it that "greedy" wasn't set. Oops. But I
didn't know about the "o", though.
>The "o
Here's one way to do it. The code is readable versus efficient.
Note that this preserves the original file in case you screw up.
#!/usr/bin/perl -w
# search and replace
my ($search, $newstr, $file, $temp, $counter);
usage() unless scalar(@ARGV) >= 1;
print "Pattern to search for: ";
chomp($sea
7;t take mail from you.
$smtp->recipient($address,{SkipBad=>1}) or return warn
$smtp->message; #Here's a warning about the recip. read about SkipBad,
you might not want to...
$smtp->data($message) or return warn $smtp->message;
Yep!
Thanks everyone, this was it. I should know better, but the examples
don't show references \@array anywhere. I was forgetting the meaning of
["1", "2", "3"] as an anonymous array that would require a reference.
After making the change from @junklist to \@junklist in my code, it
works prope