#!usr/bin/perl print "type hw to print hello world script!"; $cmd = <stdin>; if ( cmd = hw ) { print "Hello, world"; } else { Print "sorry I didn't understand the command."; }
In reply to Conditional question by Mr.Clean
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |