gpmathis has asked for the wisdom of the Perl Monks concerning the following question:
resulting in:print "\nHow old are you?: "; $age = <STDIN>; $year = 2017 - $age; print "You were born in $year\n"
I can't seem to find a way get the "50" to show up in a log file. The old "script" utility on Unix captured everything that happened in a terminal, but I can't seem to find a Windows command prompt equivalent either. Any ideas? Thanks.How old are you?: 50 You were born in 1967
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Saving a Perl session to a file
by AnomalousMonk (Archbishop) on Apr 14, 2017 at 02:57 UTC | |
by Discipulus (Canon) on Apr 14, 2017 at 08:18 UTC | |
by AnomalousMonk (Archbishop) on Apr 14, 2017 at 14:59 UTC | |
by Discipulus (Canon) on Apr 15, 2017 at 11:52 UTC | |
by AnomalousMonk (Archbishop) on Apr 15, 2017 at 18:54 UTC | |
by marinersk (Priest) on Apr 14, 2017 at 02:59 UTC | |
|
Re: Saving a Perl session to a file
by marinersk (Priest) on Apr 14, 2017 at 02:56 UTC | |
|
Re: Saving a Perl session to a file
by Marshall (Canon) on Apr 14, 2017 at 18:07 UTC | |
|
Re: Saving a Perl session to a file
by gpmathis (Initiate) on Apr 17, 2017 at 12:50 UTC |