Search notes:

Perl function: require

use warnings;
use strict;

our $r_foo;

require "required.pl";
#
#  it seems that alternatively it can be written
#     require required
#  but that then the required file needs the name
#     required.pm
#

printf "%s  %d\n", $r_foo, sum (38, 4);
Github repository about-perl, path: /functions/require/require.pl
our $r_foo = 'bar';

sub sum {

  my $arg_1 = shift;
  my $arg_2 = shift;

  return $arg_1 + $arg_2;

}

1;
Github repository about-perl, path: /functions/require/required.pl

See also

Perl functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758207232, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/functions/require(74): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78