Irishboy24 has asked for the wisdom of the Perl Monks concerning the following question:
I have a simple script, which ipon execution asks a question, if the answer is Y it will print out something. here is the code.
#!/usr/bin/bash set -x echo -n "can you write device drivers?" read answer if [ $answer = Y ] then echo "wow, you must be very skilled" else echo "neither can i, i am just shell script" fi
My problem is that i have been trying to convert it to perl and unable to do so. can someone please help.
thanks ArsenalboyThank you for your replies perl monks, i am sorry i was unable to provide the code as i really dint understand how to approach it. i am very new to perl and this was really helpful in my learning of the subject. thanks a lot guys. Perl monks rock!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Interactive Perl script
by SuicideJunkie (Vicar) on Aug 27, 2009 at 15:42 UTC | |
|
Re: Interactive Perl script
by bv (Friar) on Aug 27, 2009 at 15:46 UTC | |
by Irishboy24 (Sexton) on Aug 27, 2009 at 16:00 UTC | |
|
Re: Interactive Perl script
by Utilitarian (Vicar) on Aug 27, 2009 at 15:54 UTC | |
by Irishboy24 (Sexton) on Aug 27, 2009 at 16:02 UTC | |
by Utilitarian (Vicar) on Aug 27, 2009 at 20:21 UTC | |
|
Re: Interactive Perl script
by moritz (Cardinal) on Aug 27, 2009 at 15:42 UTC | |
|
Re: Interactive Perl script
by biohisham (Priest) on Aug 27, 2009 at 15:45 UTC | |
|
Re: Interactive Perl script
by bichonfrise74 (Vicar) on Aug 28, 2009 at 00:48 UTC |