[svn:PHP-Sandwich] r1438 - PHP-Sandwich/trunk/lib/PHP

[email protected] 31 Jul 2005 15:47:12 -0000
Newsgroups perl.php.sandwich.dev
Message-ID <[email protected]>
Author: theory
Date: Sun Jul 31 08:47:11 2005
New Revision: 1438

Modified:
   PHP-Sandwich/trunk/lib/PHP/Interpreter.pm
Log:
Grammar, speling, whitespace, and a note on getVariable() and setVariable().


Modified: PHP-Sandwich/trunk/lib/PHP/Interpreter.pm
==============================================================================
--- PHP-Sandwich/trunk/lib/PHP/Interpreter.pm	(original)
+++ PHP-Sandwich/trunk/lib/PHP/Interpreter.pm	Sun Jul 31 08:47:11 2005
@@ -150,7 +150,7 @@ Sets a new output handler, either a scal
 
   my $outbuf = $php->get_output;
 
-If the output buffer is a scalar reference, this method will return it's
+If the output buffer is a scalar reference, this method will return its
 current contents.
 
 =head3 clear_output()
@@ -207,7 +207,7 @@ Object in PHP will appear in Perl as of 
 
 =head1 USING PHP
 
-The PHP interpeter that is instantiated with PHP::Interpreter has some special classes it defines to allow PHP to interface back with it's calling PHP Interpreter.
+The PHP interpeter that is instantiated with PHP::Interpreter has some special classes it defines to allow PHP to interface back with its calling PHP Interpreter.
 
 =head2 Perl
 
@@ -232,13 +232,13 @@ Executes the passed perl code, returning
   <?php
     $perl = Perl::getInstance();
     $perl->eval(q^
-      for(reverse(1...99)) { 
+      for(reverse(1...99)) {
         print "$_ bottles of beer on the wall, $_ bottles of beer.\n";
       }
     ^);
   ?>
 
-B<NOTE> There is a current issue with instantiating XS based objects via eval().  Use new() instead.
+B<NOTE> There is currently an issue with instantiating XS based objects via eval().  Use new() instead.
 
 =head3 call()
 
@@ -261,7 +261,7 @@ Create a new instance of a perl class.
      $instance = $perl->new('IO::File', "<$file");
   ?>
 
-This will return a PHP object of type 'PerlSV::IO::File', which wil proxy all the Perl classes' method calls.
+This will return a PHP object of type 'PerlSV::IO::File' that will proxy all the Perl classes' method calls.
 
 =head3 getVariable()
 
@@ -272,6 +272,8 @@ Access a Perl symbol by name.
      $version = $perl->getVariable("$PHP::Interpreter::VERSION");
   ?>
 
+This works only for package variables, not lexical (C<my>) variables.
+
 =head3 setVariable()
 
 Set a Perl symbol by name.
@@ -283,6 +285,7 @@ Set a Perl symbol by name.
   ?>
 
 This sets '$main::fruits' to be a hashref of the listed fruits.
+This works only for package variables, not lexical (C<my>) variables.
 
 B<Note>: PHP functions are not first class objects, so you cannot set coderefs in perl.
 
@@ -303,7 +306,7 @@ The PerlSV class is the base PHP wrapper
     $perl = Perl::getInstance();
     $fh = $perl->new("IO::File", "<$file");
     while($fh->getline()) {
-      # ...  
+      # ...
     }
   ?>