SPUG: sending emails

Michael R. Wolf MichaelRWolf at att.net
Thu Feb 22 08:59:38 PST 2007

Michael R. Wolf
    All mammals learn by playing!
        MichaelRWolf at att.net

> -----Original Message-----
> From: Jacinta Richardson [mailto:jarich at perltraining.com.au]
> Sent: Thursday, February 22, 2007 1:40 AM
> To: Michael R. Wolf
> Cc: spug-list at pm.org
> Subject: Re: SPUG: sending emails
> Michael R. Wolf wrote:
> > You localized, but did not change, the input record separator.  Try:
> >
> >     use English qw(-no_match_vars);
> >     my $content = do { local $INPUT_RECORD_SEPARATOR = undef; <$xml_fh>;
> }
> Localising a variable automatically sets it to undefined.  If you don't
> want
> this behaviour you have to explicitly say:
> 	local $/ = $/;

Thanks.  I didn't know.  It's good to know.  AND, given that I don't know
now, and am likely to forget in the future, I'll be explicit.

As for slurping, I knew the idiom because I'd recently used it for the first
time in a year or so.  I tried to use a Slurp module, but found that the
client didn't have it installed.  I *love* modules.  I merely "like" the
ones that aren't installe.

Thanks again for the insight.....

More information about the spug-list mailing list