UPDATE: As Juerd has pointed out, this is a FAQ. If you take my answer from here please read the FAQ also. It is so much better to know where to find the information than to just know it. Programming is only fun when you are constantly learning, and you can't learn without the proper resources. grep#!/usr/bin/perl -w use strict; my $myvar = "that_one"; $_ = $myvar; CASE: { /^this_one$/ && do { print localtime(); last CASE; }; /^that_one$/ && do { print "SPOOOON!\n"; last CASE; }; }
|
In reply to Re: case command ??
by grep
in thread case command ??
by seriousfun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |