14.01.2013 Views

Mastering Regular Expressions - Table of Contents

Mastering Regular Expressions - Table of Contents

Mastering Regular Expressions - Table of Contents

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. slates the variable to have the original value restored when execution runs <strong>of</strong>f<br />

the end <strong>of</strong> the block enclosing the local.<br />

This means that "local" refers only to how long any changes to the variable will<br />

last. The global variable whose value you've copied is still visible from anywhere<br />

within the program—if you make a subroutine call after creating a new dynamic<br />

scope, that subroutine (wherever it might be located in the script) will see any<br />

changes you've made. This is just like any normal global variable. The difference<br />

here is that when execution <strong>of</strong> the enclosing block finally ends, the previous value<br />

is automatically restored.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!