perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl-docs/src/docs/1.0/guide perl.pod
Date Tue, 23 Apr 2002 13:29:28 GMT
stas        02/04/23 06:29:28

  Modified:    src/docs/1.0/guide perl.pod
  Log:
  clarify the difference between require and use upfront.
  
  Revision  Changes    Path
  1.7       +7 -4      modperl-docs/src/docs/1.0/guide/perl.pod
  
  Index: perl.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/1.0/guide/perl.pod,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- perl.pod	21 Apr 2002 17:30:56 -0000	1.6
  +++ perl.pod	23 Apr 2002 13:29:28 -0000	1.7
  @@ -1404,9 +1404,12 @@
   
   use(), just like require(), loads and compiles files containing Perl
   code, but it works with
  -L<modules|guide::perl/Modules__Libraries_and_Program_Files> only.  The only way to
  -pass a module to load is by its module name and not its filename.  If
  -the module is located in I<MyCode.pm>, the correct way to use() it is:
  +L<modules|guide::perl/Modules__Libraries_and_Program_Files> only and
  +is executed at compile time.
  +
  +The only way to pass a module to load is by its module name and not
  +its filename.  If the module is located in I<MyCode.pm>, the correct
  +way to use() it is:
   
     use MyCode
   
  @@ -1755,7 +1758,7 @@
     my $base_dir      = $s->dir_config('FooBaseDir')      || '';
     my $config_module = $s->dir_config('FooConfigModule') || '';
     die "FooBaseDir and FooConfigModule aren't set in httpd.conf" 
  -    unless $base_dir and $config_module;
  +      unless $base_dir and $config_module;
     
     # build the real path to the config module
     my $path = "$base_dir/$config_module";
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org


Mime
View raw message