Unsure exactly what you are really after, but you would code your program
into subs with one while loop or some controlling mechanism which would
allow you to go where you wanted within your program.
sub suba {
}
sub subb {
}
sub subcc {
}
while ( 1 ) {
print "Please enter value:"
chomp(my $MyValue = <STDIN>);
last if ( $MyValue == /^done$/i );
if ( $MyValue =~ /^all/i ) {
suba();
subb();
subc();
}elsif ( ) {
....
}....
}
If asking about CGI, may be a different format, but at least one way to do
it.
Wags ;)
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 13:09
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: simple Perl question
I have a very simple question.. i want to know how can I tell my program to
go back to the beginning of the program depending on the user input?
Candice