Chas. Owens wrote:
On Fri, May 2, 2008 at 5:08 PM, Joshua Hoblitt <[EMAIL PROTECTED]> wrote:
snip
 They are probably undefinately because the record seperator is being set
 lexically inside of the loop (and thus won't apply to the outer while).  Please
 consider this code:


    local $/ = "\n\n";
snip

An important nitpick: that is a localized version of $/, not a lexical
version.  See

http://perldoc.perl.org/functions/local.html

for more information.

Chas, does this mean as long as we don't call another sub from the block we declare local, we should be good. Correct? I like using local on some of these variables...... for some reason. Most likely due to misleading name :-) Can't help myself.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to