interactive mode ` ` in perl script
From: DGG (tong.yin_at_nectech.co.uk)
Date: 03/02/05
- Previous message: makko: "perlcc error"
- Next in thread: Jim Gibson: "Re: interactive mode ` ` in perl script"
- Reply: Jim Gibson: "Re: interactive mode ` ` in perl script"
- Reply: Joe Smith: "Re: interactive mode ` ` in perl script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 2 Mar 2005 09:22:25 -0800
I have got a question arsing from my perl program.
Basically, I want to get the machine date and time, and display it on a
Tk label.
I am using ActivePerl, and running on DOS/Windows.
So I would use `date` to get the current date.
Though "date" has a silent mode. I am thinking in general, if assume
"date" only has an interactive mode. So after typing in "date", after
displaying the current date, the program also awaits an input (new date
setting or an ENTER) to complete.
As we are running inside a perl script, how can one imitate an
interactive input to feed into the program input?
Thanks guys
- Previous message: makko: "perlcc error"
- Next in thread: Jim Gibson: "Re: interactive mode ` ` in perl script"
- Reply: Jim Gibson: "Re: interactive mode ` ` in perl script"
- Reply: Joe Smith: "Re: interactive mode ` ` in perl script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|