#!/usr/bin/perl -w use strict; print "Content-type: text/plain\n\n"; my $counter = 0; for (1..5) { $counter = increment_counter($counter); } sub increment_counter { my $counter = shift; $counter++; print "Counter is equal to $counter !\n"; return $counter; }