* removed the double negative in the question and answer
* changed "pointer" to "reference"
Index: perlfaq.pod
===================================================================
RCS file: /cvs/public/perlfaq/perlfaq.pod,v
retrieving revision 1.10
diff -u -d -r1.10 perlfaq.pod
--- perlfaq.pod 29 Aug 2002 03:34:00 -0000 1.10
+++ perlfaq.pod 29 Aug 2002 03:46:30 -0000
@@ -234,7 +234,7 @@
=item *
-Is it unsafe to return a pointer to local data?
+Is it safe to return a reference to local or lexical data?
=item *
Index: perlfaq3.pod
===================================================================
RCS file: /cvs/public/perlfaq/perlfaq3.pod,v
retrieving revision 1.26
diff -u -d -r1.26 perlfaq3.pod
--- perlfaq3.pod 29 Aug 2002 03:34:00 -0000 1.26
+++ perlfaq3.pod 29 Aug 2002 03:46:31 -0000
@@ -583,9 +583,10 @@
=back
-=head2 Is it unsafe to return a pointer to local data?
+=head2 Is it safe to return a reference to local or lexical data?
-No, Perl's garbage collection system takes care of this.
+Yes. Perl's garbage collection system takes care of this so
+everything works out right.
sub makeone {
my @a = ( 1 .. 10 );