File: nested_heading_prompt

package info (click to toggle)
libshell-posix-select-perl 0.09-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 800 kB
  • sloc: perl: 2,727; makefile: 7
file content (24 lines) | stat: -rwxr-xr-x 474 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /usr/bin/perl -w

my $VERSION = 1.02;

use blib;

use Shell::POSIX::Select qw($Prompt $Heading);

$Heading="\n\nQuantity Menu:";
$Prompt="Choose Quantity:";
OUTER:
select my $quantity (1..4) {
#	warn "inside Outer loop\n";

	$Heading="\nSize Menu:";
	$Prompt='Choose Size:';
	select my $size ( qw (L XL) ) {
#		warn "inside Inner loop\n";
		print "You chose $quantity units of size $size\n";
		last OUTER;
	}
#	warn "outside Inner loop\n";
}
#warn "outside all loops\n";