From: "Saira Somani" <[EMAIL PROTECTED]> Can you give me a hint? So I use Perl to rid the file of these characters and then uuencode it and then use mail utility to send to people? Won't uuencode do the same thing again and add those characters back?
I haven't used uuencode, but basically what you need to do is: 1) Generate the file 2) Run uuencode 3) Clean it up with perl script 4) Email it
If you want to send me a copy of the uuencoded file, I'd be happy to take a look at it. Your perl code will look something like this:
#!perl
open INPUT_FILE, "<infile.txt";
open OUTPUT_FILE, ">outfile.txt";
while (<INPUT_FILE>) {
®ex
}
close INPUT_FILE;
close OUTPUT_FILE;sub regex {
}Where the regex subroutine will contain the code which finds and eliminates the nasty characters you want to remove. If you're a minimalist, you could probably rewrite the whole thing to be a single inline statement using perl -p -i -e
Chris Berry [EMAIL PROTECTED] Systems Administrator JM Associates
"Without change, something sleeps inside us, and seldom awakens. The sleeper must awaken." -- Duke Leto Atreides
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Chris Berry INET: [EMAIL PROTECTED]
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
