RE: Help: automated email forwarding similar to .forward

2005-07-27 Thread Rich Fernandez
Thanks Wiggins, > As far as reading the message in, > parsing it, and then forwarding it, I guarantee the Mail::Box > suite can > handle what you want, but it does have a learning curve. You are right, I did not read the doco carefully enough. Sorry. > Sorry I can't provide source what I wrote

RE: Help: automated email forwarding similar to .forward

2005-07-27 Thread Rich Fernandez
hile > doing what ever you like with it - for example sleep(3600) in > fork / or > threaded spawn of you programm. > > MNibble > > > Rich Fernandez wrote: > > Hi folks, > > > > I'm working on a project where I'm given a pool of users >

Help: automated email forwarding similar to .forward

2005-07-27 Thread Rich Fernandez
Hi folks, I'm working on a project where I'm given a pool of users and I have to determine if there are any messages in their spool files, and if so, forward them on to a new user. I'm looking for functionality similar to what you get with a .forward file, only I don't want the messages forward

Date-Simple-3.01 doesn't compile?

2004-08-18 Thread Rich Fernandez
I'm trying to install Date::Simple using the CPAN module and I get errors out of "make test" which fails the installation. Here's what I've done and a part of the output: # perl -MCPAN -eshell cpan> install Date::Simple --- Running make test PERL_DL_NONLAZY=1 /usr/bin/pe

ref() is not reporting correctly

2004-08-05 Thread Rich Fernandez
I have a hash which looks something like this: %hash = ( foo => 'a', bar => 'b', filespec => "$filespec"); I also have a function which includes the following code: # Figure out if we were passed a filename or an array ref if ( exists $info -> {filespec} ) { $filespec = $info ->

regex alternation question

2004-05-20 Thread Rich Fernandez
I'm unclear about how alternation works in a regex. Say I want to find either "foo" or "bar" within a string. I don't care which one I match, only that I make a match. Would this be correct: /foo|bar/ Should they be grouped thusly: /(foo|bar)/ What about /(?:foo|bar)/ ? Specifically, I k

CPAN.pm: How do you specify an alternate compiler?

2003-11-05 Thread Rich Fernandez
Hi folks, I'm using CPAN.pm to install Bundle::CPAN (and others) and I get a message that says: make: cc: Command not found How can I specify gcc instead of cc without having to edit each individual Makefile? I created a link called "cc" and pointed it to /usr/local/bin/gcc, but I get all kinds

migrating perl from version x to version y

2003-09-23 Thread Rich Fernandez
Can some one tell me if there is an easy way generally speaking to migrate one version of perl and the modules installed under it to another version? Also, in this specific case I want to go from 5.00503 to 5.8.0 The wrinkle is that the box that needs to be upgraded does not have http/ftp access t

RE: Array Question

2003-06-25 Thread Rich Fernandez
Sorry, I'm a unix guy...ctrl-d works on my unix box. You might try that instead, just to see :) richf -Original Message- From: Anthony Beaman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 10:24 AM To: Rich Fernandez Cc: [EMAIL PROTECTED] Subject: RE: Array Question

RE: Array Question

2003-06-25 Thread Rich Fernandez
Hi Anthony, LF (\n) is the default record separator, so if you type 3 names and press enter, all 3 names get placed in $array[0]. The next item(s) get placed in $array[1], etc depending on where you press enter. If your input looks like this: Fred Barney Wilma Betty your program will print "

RE: MIME::Lite : Can someone please point out what I'm doing wron g?

2003-05-31 Thread Rich Fernandez
-Original Message- From: Rich Fernandez [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 3:51 PM To: '[EMAIL PROTECTED]' Subject: MIME::Lite : Can someone please point out what I'm doing wrong? my $msg = MIME::Lite -> new( From=> '[EMA

MIME::Lite : Can someone please point out what I'm doing wrong?

2003-05-30 Thread Rich Fernandez
Hello, I wrote a script which tars up a file and mails it out as a MIME attachment. When I run it I get a message that says "no data in this part" at line 35. A message does show up in my Inbox, but w/o the attachment. It must be something simple but I just don't see it. Here's the code: ---

flock problem on AIX 4.3.3

2001-11-20 Thread Rich Fernandez
Hello, A colleague is experiencing some problems using user_manage v1.53 by Lincoln Stein with Apache Stronghold 3 on AIX 4.3.3. Seems as though the entire password file is getting corrupted when there are a lot of people changing passwords. The file seems to be blanked out and/or with only a few

Resolved!!! WAS: RE: Renaming UNIX files

2001-11-01 Thread Rich Fernandez
FWIW and for other newbies that might care... I'm not sure why this works, but it does. If I issue the command: rename $source, $target or warn "..."; where $source contains my funky file name --> 'ENDPNA.PROD.HRBANS(EDIFACT)' it _just_works_! No need to escape anything!!! I was gett

RE: Renaming UNIX files

2001-11-01 Thread Rich Fernandez
Thanks for all the responses, but I'm still trying to get this to work. I put a couple of print statements in and re-ran the script sending the output to a log: map_rename.pl > map_rename.log 2>&1 Here's the contents of the log file (I'm using only 3 files for testing)... \'ENDPNA.PROD.HRBANS(ED

Renaming UNIX files

2001-10-31 Thread Rich Fernandez
It all started out as a simple script to rename some files. Now I can't find my way out! I have several hundred files that are named like this: 'ENDPNA.PROD.HRBANS(EDIFACT)' Note that the file name includes single ticks, dots, and parens. Here's what I've done so far: while (<*>) {

zipping files with Active State Perl

2001-07-31 Thread Rich Fernandez
Does anyone know how to zip files with Perl on a windows platform? I have a couple of directories that I want to zip up and archive periodically. Thanks! richf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: CGI to rewrite a URL

2001-07-27 Thread Rich Fernandez
Thanks folks (Bob, Mel)! I got 2 different ways to do the same thing. Choice is good :-) --richf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

CGI to rewrite a URL

2001-07-27 Thread Rich Fernandez
Hi, I've been asked to write a CGI script that takes a URL of the form: https://webserver/cgi-bin/myscript.cgi/myreport and redirects the browser to: https://webserver/cgi-bin/myscript.cgi/full/path/to/report/myreport In other words, we want to hide the true URL of the report fr

RE: Loading images with CGI.pm...Rephrased

2001-06-05 Thread Rich Fernandez
> -Original Message- > From: Timothy Kimball [mailto:[EMAIL PROTECTED]] > print STDOUT $query->header( > -type => "video/mpeg", > ); > > open MOVIE, $vidfile or die "Couldn't open $vidfile: $!"; > while ( read(VIDFILE, $_, 100_000) ) { print STDOUT; } > close MOVIE; > Thanks, thi

RE: Loading images with CGI.pm...Rephrased

2001-06-05 Thread Rich Fernandez
Thanks for your responses but I guess I wasn't clear enough with my original question. Sorry. Let me try again... I _already_ have a link on my page that says http://gromit/cgi-bin/juggling.pl?video=rr.mpg> Rubinstein's Revenge" When this link is clicked, my script will parse the URL and determi

Loading images with CGI.pm

2001-06-05 Thread Rich Fernandez
Hello folks, I'm playing around with a web page that serves up an image or video file. If I use straight HTML I can create a link that says something like "" and have the video display when the link is clicked, but I can't get the right syntax using CGI.pm. Probably trivial, but... The link that