#!/usr/bin/perl -w use strict; SWITCH: for(<STDIN>) { /^[Yy]o$/ && { print "whats up"; last; }; /^[Nn]ot much$/ && { print "cool"; last; }; print "HUH?" }
====>
Mice were crying and stinging but went on nibbling the cactus ...
( The facts of life )
<====
In reply to Re: Code question?
by nite_man
in thread Problem with simple program reading from STDIN
by yellowbeard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |