Re: Re: complex condition

2003-10-31 Thread Steve Gilbert
>> I know there must be a way to do the following: >> >> if (($foobar > 3) || ($foo="t" && $bar = "b")) {print >> "yup"} >if (($foobar > 3) || ($foo eq "t" && $bar eq "b")) {print "yup"} > >Your problem is that a single '=' is assignment, not >equality. '==' could also be used >instead of 'eq'.

complex condition

2003-10-30 Thread Steve Gilbert
I know there must be a way to do the following: if (($foobar > 3) || ($foo="t" && $bar = "b")) {print "yup"} Of course this is wrong, but what I want is to print yup if $foobar >3 or $foo=t and $bar=b. so: $foobar=4 $foo=a $bar=b is true $foobar=1 $foo=f $bar=b is true $foobar=1 $foo=f $bar=a is

Enumerating available modules

2003-03-28 Thread Steve Gilbert
Does anyone know of a way to enumerate all the available modules on a system? TIA Steve __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Net::POP3 ping method Help

2002-09-27 Thread Steve Gilbert
Does anyone have any experience using the ping method from Net::POP3? I've included the following code, after running I get "Cannot get ping stats:" #/usr/bin/perl -w use Net::POP3; $pop = Net::POP3->new($mail_server) or die "Can't connect $!\n"; defined ($pop->login($user)) or die "Can't login

Adult content filter in perl

2002-09-23 Thread Steve Gilbert
My daughter has decided to put up a web site that she'd like people to email her at. She has an aol account at her mothers but I did not want her to give out that address. So I set up an account were people can email her there and then I have a process that is to eliminate any message with "adult

Extracting attachments from emails

2002-07-18 Thread Steve Gilbert
Does anyone have a suggestion for extracting file attachments from emails? I need to setup a process that pulls data from an email and then moves the data and starts another process. Any help would be great! Thanks, Steve __ Do You Yahoo!? Yahoo!