#!/usr/local/bin/perl -w use strict; my $initial = "there once was a fish. Its feet were small"; my $post = func($initial); my $post2 = func($initial); print "$post\n"; do 'call2.pl'; #eval `cat call2.pl`; #use CGI::Session; sub func { $_[0] =~ s/there/There/; return $_[0]; }