<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Perl Aliases &#38; Dynamically Scoped Variables</title>
	<link>http://wdr1.com/blog/2005/08/27/perl-aliases-dynamically-scoped-variables/</link>
	<description>Screams in the Night</description>
	<pubDate>Thu, 20 Nov 2008 14:28:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Bill</title>
		<link>http://wdr1.com/blog/2005/08/27/perl-aliases-dynamically-scoped-variables/#comment-573</link>
		<author>Bill</author>
		<pubDate>Mon, 29 Aug 2005 03:37:29 +0000</pubDate>
		<guid>http://wdr1.com/blog/2005/08/27/perl-aliases-dynamically-scoped-variables/#comment-573</guid>
		<description>Limiting my poor verbal form to just today is too kind. ;)
</description>
		<content:encoded><![CDATA[<p>Limiting my poor verbal form to just today is too kind. ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey Friedl</title>
		<link>http://wdr1.com/blog/2005/08/27/perl-aliases-dynamically-scoped-variables/#comment-572</link>
		<author>Jeffrey Friedl</author>
		<pubDate>Sun, 28 Aug 2005 21:00:44 +0000</pubDate>
		<guid>http://wdr1.com/blog/2005/08/27/perl-aliases-dynamically-scoped-variables/#comment-572</guid>
		<description>Oh, I guess I see what you mean. You're not in good verbal form today, though, as the value of any non-constant variable tends to depend on the execution path, no? :-)


"local" is an action which has no influence on the scope of the variable (on where in the code the variable is accessable from). It merely makes a copy of the current value and schedules that copied value to be put back at the close of the current lexical scope. You could consider that the varialble's *value* has been dynamically scoped, an issue which seems unrelated to your original post about making aliases.

I'm curious to look at Lexical::Alias to see how it was done. In pure Perl, I figure it'd have to be done with a tied variable or, gee, perhaps overloading could do it?  It's not something I ever recall having needed....</description>
		<content:encoded><![CDATA[<p>Oh, I guess I see what you mean. You&#8217;re not in good verbal form today, though, as the value of any non-constant variable tends to depend on the execution path, no? :-)</p>
<p>&#8220;local&#8221; is an action which has no influence on the scope of the variable (on where in the code the variable is accessable from). It merely makes a copy of the current value and schedules that copied value to be put back at the close of the current lexical scope. You could consider that the varialble&#8217;s *value* has been dynamically scoped, an issue which seems unrelated to your original post about making aliases.</p>
<p>I&#8217;m curious to look at Lexical::Alias to see how it was done. In pure Perl, I figure it&#8217;d have to be done with a tied variable or, gee, perhaps overloading could do it?  It&#8217;s not something I ever recall having needed&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://wdr1.com/blog/2005/08/27/perl-aliases-dynamically-scoped-variables/#comment-571</link>
		<author>Bill</author>
		<pubDate>Sun, 28 Aug 2005 16:24:42 +0000</pubDate>
		<guid>http://wdr1.com/blog/2005/08/27/perl-aliases-dynamically-scoped-variables/#comment-571</guid>
		<description>I think using 'local' was refered to a dynamic as the value can depend upon a particular path of execution?</description>
		<content:encoded><![CDATA[<p>I think using &#8216;local&#8217; was refered to a dynamic as the value can depend upon a particular path of execution?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey Friedl</title>
		<link>http://wdr1.com/blog/2005/08/27/perl-aliases-dynamically-scoped-variables/#comment-570</link>
		<author>Jeffrey Friedl</author>
		<pubDate>Sun, 28 Aug 2005 13:20:41 +0000</pubDate>
		<guid>http://wdr1.com/blog/2005/08/27/perl-aliases-dynamically-scoped-variables/#comment-570</guid>
		<description>What is dynamic about the scope of any perl variable? All named variables are statically scoped ('my' variables are visible from within a specific lexical scope defined at compile time; global variables are visible from everywhere).</description>
		<content:encoded><![CDATA[<p>What is dynamic about the scope of any perl variable? All named variables are statically scoped (&#8217;my&#8217; variables are visible from within a specific lexical scope defined at compile time; global variables are visible from everywhere).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
