IHYPRESS PROGRAMMING
Tutorials and Perl programs with code and output for beginners
Perl logo
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
Perl ❯ Subroutines
<11>
#!/usr/bin/perl -wT use CGI':standard'; use CGI::Carp qw(warningsToBrowser fatalsToBrowser); print header(); print start_html(-title => "Subroutines"); sub bigblue { print "<div style='color:blue;font-size:64px;'>$_[0]</div>"; } sub multiply { my (@ops) = @_; return ($ops[0] * $ops[1]); } my $s; $s = "Get your kicks on Route 66!"; bigblue($s); my $product = multiply (7,8); print "<div style='color:red;font-size:64px;'>$product</div>"; print end_html();
Hergestellt in Deutschland / Made in Germany
Subroutines
Get your kicks on Route 66!
56
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland