<?php $variable = perl_Subroutine; echo "<p>The result is </p> . $variable"; ?> #!/usr/bin/perl #################### sub perl_Subroutine{ #################### my $self = shift; (if I passing something to this function/method o +f course). my $result; $result = $self + 2; return $result; }
In reply to Perl and PHP by vihnny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |