Subject: Re: Printing epoch time

What does this have to do with "Printing epoch time"?


[EMAIL PROTECTED] wrote:
> 
>  can anyone show me how I would get the screen resolution with perl in a unix
> environment?

This works on my system (Linux).

$ perl
-le'                                                               
($rows, $cols) = `stty -a` =~ /rows\s+(\d+).+?columns\s+(\d+)/;
print "Rows: $rows    Columns: $cols" 
'
Rows: 44    Columns: 132



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to