Mr.Clean has asked for the wisdom of the Perl Monks concerning the following question:
#!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."; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Conditional question
by marto (Cardinal) on Oct 19, 2007 at 11:35 UTC | |
|
Re: Conditional question
by Corion (Patriarch) on Oct 19, 2007 at 11:27 UTC | |
by eric256 (Parson) on Oct 19, 2007 at 13:55 UTC | |
by Corion (Patriarch) on Oct 19, 2007 at 14:04 UTC | |
by goibhniu (Hermit) on Oct 19, 2007 at 20:16 UTC | |
by Corion (Patriarch) on Oct 19, 2007 at 20:36 UTC | |
| |
|
Re: Conditional question
by almut (Canon) on Oct 19, 2007 at 11:29 UTC | |
|
Re: Conditional question
by perlfan (Parson) on Oct 19, 2007 at 13:38 UTC | |
by Mr.Clean (Initiate) on Oct 19, 2007 at 20:03 UTC | |
|
Re: Conditional question
by apl (Monsignor) on Oct 19, 2007 at 12:25 UTC | |
|
Re: Conditional question
by andreas1234567 (Vicar) on Oct 19, 2007 at 11:46 UTC | |
by Corion (Patriarch) on Oct 19, 2007 at 11:59 UTC | |
|
Re: Conditional question
by ww (Archbishop) on Oct 22, 2007 at 14:13 UTC |