Warning: include(/home/yabbforum/public_html/dev/templates/top.php) [function.include]: failed to open stream: No such file or directory in /opt/yabbforum/server/public_html/dev/standards/subs.php on line 3

Warning: include() [function.include]: Failed opening '/home/yabbforum/public_html/dev/templates/top.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/yabbforum/server/public_html/dev/standards/subs.php on line 3

<< Back

Subroutines

Calling

open my $file, "<", "/path/to/file" or die "Error! $@";
close $file;
my ($var1, $var2, $var3) = split /:/, $variable, 3;

my $result = get_data( $param1, $param2 );

Defining

sub get_data {
    my ($param1, $param2) = @_;
    if (not defined $param1 or not defined $param2) {
        die "Error: required arguments not found!";
    }
    
    # do some stuff ...
    
    return $value;
}

Warning: include(/home/yabbforum/public_html/dev/templates/bottom.php) [function.include]: failed to open stream: No such file or directory in /opt/yabbforum/server/public_html/dev/standards/subs.php on line 44

Warning: include() [function.include]: Failed opening '/home/yabbforum/public_html/dev/templates/bottom.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/yabbforum/server/public_html/dev/standards/subs.php on line 44