 2008/07/04
|
Last update 2000/12/08
The Labs - Design & Functionality For The Net
Perl5 & Tk 4.0/8.0
Perl is surely the most powerful language for the UNIX platform to handle
system-adminstration tasks. I nearly write everything in Perl nowadays, even
graphic applications, not to mentioned 95% of all my CGIs (incl.
heavy used CGIs, ie. web-counter, or webchat).
- Download
- Local Resources
- Official Resources
- Some Scripts
- Images within the Source
Perl | | |
perl -MCPAN -eshell
|
|
cpan> install Tk
|
|
FreeBSD | | |
cd /usr/ports/x11-toolkits/p5-Tk/
|
|
make install
|
|
Debian/Linux | |
|
| PerlTK3. Official Resources
|
| SystemViuwSmall script displaying cpu-load, and disk-spaces; for AfterStep |
NetViuwSmall script displaying net-graphs (ppp0, eth0 etc); for AfterStep |
WorkTimerTimer to keep track of work |
| MyDiaryDiary program (text, audio & video) |
MyDeskSmall and nice desktop program |
| PerlTK5. Images within the Source
|
Usually images are externally handled:
|
$pic = $top->Photo(-file => "earth.gif");
|
|
$top->Button(-image => $pic)->pack;
|
Use following phexdata:
|
% phexdata < perl_camel.gif > data
|
The data file read with your favourite editor into your perl source-code
between "@d = (" and ");":
|
@d = (
|
|
"\x47\x49\x46\x38\x39\x61\x5a\x00\x5a\x00\xa2\x00\x00\xff\xff\xff...
|
|
"\x7d\x0f\x28\x6d\x6c\x4f\x81\x63\x06\x2f\x29\x74\x9a\x8a\x0b\x29...
|
|
....
|
|
"\x0a\x02\x4a\x1c\x56\x6d\x66\x61\x5b\x49\x54\x4a\xd9\x10\xe0\x42...
|
|
);
|
|
|
|
$img = $top->Photo(-data => join('',@d), -format => 'gif');
|
A sample source-code is inline-pic.pl.

Last update 2000/12/08 
All Rights Reserved - (C) 1997 - 2008 by The Labs.Com |