Penguin

Differences between current version and predecessor to the previous major change of perlsub(1).

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 2 Last edited on Monday, June 3, 2002 6:50:50 pm by perry
Older page: version 1 Last edited on Monday, June 3, 2002 6:50:50 pm by perry Revert
@@ -532,9 +532,9 @@
  
  
 
 local %ENV; 
-tie %ENV, 'MyOwnEnv'; 
+tie %ENV, '! MyOwnEnv'; 
 [[..do your own fancy %ENV manipulation here..] 
 
 [[..normal %ENV behavior here..] 
 It's also worth taking a moment to explain what happens when you localize a member of a composite type (i.e. an array or hash element). In this case, the element is localized ''by name''. This means that when the scope of the local() ends, the saved value will be restored to the hash element whose key was named in the local(), or the array element whose index was named in the local(). If that element was deleted while the local() was in effect (e.g. by a delete() from a hash or a shift() of an array), it will spring back into existence, possibly extending an array and filling in the skipped elements with undef. For instance, if you say 
@@ -1043,9 +1043,9 @@
 but our REGlob doesn't. Indeed, many perl built-in 
 have such context sensitive behaviors, and these must be 
 adequately supported by a properly written override. For a 
 fully functional example of overriding glob, study 
-the implementation of File::DosGlob in the standard 
+the implementation of File::! DosGlob in the standard 
 library. 
  
  
 __Autoloading__ 
@@ -1071,9 +1071,9 @@
 requested subroutine using ''eval()'', then execute that 
 subroutine using a special form of ''goto()'' that erases 
 the stack frame of the AUTOLOAD routine without a 
 trace. (See the source to the standard module documented in 
-AutoLoader, for example.) But an AUTOLOAD routine 
+! AutoLoader, for example.) But an AUTOLOAD routine 
 can also just emulate the routine and never define it. For 
 example, let's pretend that a function that wasn't defined 
 should just invoke system with those arguments. All 
 you'd do is: 
@@ -1096,11 +1096,11 @@
 A more complete example of this is the standard Shell module, which can treat undefined subroutine calls as calls to external programs. 
  
  
 Mechanisms are available to help modules writers split their 
-modules into autoloadable files. See the standard AutoLoader  
-module described in AutoLoader and in AutoSplit, the  
-standard SelfLoader modules in SelfLoader, and the document 
+modules into autoloadable files. See the standard ! AutoLoader  
+module described in ! AutoLoader and in ! AutoSplit, the  
+standard ! SelfLoader modules in ! SelfLoader, and the document 
 on adding C functions to Perl code in perlxs. 
  
  
 __Subroutine Attributes__ 
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.