Re: local()! Explain, please?

2002-10-24 Thread Michael Fowler
On Thu, Oct 24, 2002 at 03:24:14PM -0400, Nikola Janceski wrote: Then I am really confused, how can I cause the scope of $\ to extend only to the end of the file and not into the other modules?? You can't. However, you might be able to confine your local version of $\ to only those operations

RE: local()! Explain, please?

2002-10-24 Thread Jenda Krynicky
From: Nikola Janceski [EMAIL PROTECTED] Then I am really confused, how can I cause the scope of $\ to extend only to the end of the file and not into the other modules?? I'm afraid you can't. You could (using some Tie::Handle magic) change the filehandle so that each print to that filehandle

RE: local()! Explain, please?

2002-10-24 Thread Nikola Janceski
line 4, near my $\ Execution of /usr/nj/pl.pl aborted due to compilation errors. -Original Message- From: Jenda Krynicky [mailto:Jenda;Krynicky.cz] Sent: Thursday, October 24, 2002 3:16 PM To: Beginners (E-mail) Subject: Re: local()! Explain, please? at the top of my script

Re: local()! Explain, please?

2002-10-24 Thread Michael Fowler
On Thu, Oct 24, 2002 at 02:02:15PM -0400, Nikola Janceski wrote: local $\ = \n; now ... isn't local supposed to modify the listed variables to be local to the enclosing block, file, or eval. ? [snip] Am I just misunderstanding the use of local? Yes, but the documentation

Re: local()! Explain, please?

2002-10-24 Thread Jenda Krynicky
From: Nikola Janceski [EMAIL PROTECTED] Okay, I was fuming mad. I have been struggling with a program that is supposed to send a simple e-mail... or so I thought! for 2 days I have sent test e-mails all of them with headers in the e-mail and attachments all screwy. then I found the culprit.

local()! Explain, please?

2002-10-24 Thread Nikola Janceski
Okay, I was fuming mad. I have been struggling with a program that is supposed to send a simple e-mail... or so I thought! for 2 days I have sent test e-mails all of them with headers in the e-mail and attachments all screwy. then I found the culprit. at the top of my script is: local $\ = \n;