Re: [Perl-unix-users] Random number

2008-01-30 Thread Suresh Govindachar
> I want the perl script to generate different file names > whenever it is called. How about using the time: my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); $year += 1900; $mon += 1; $file = sprintf("%s%4.4d_%2.2d_%2.2d_%2.2d_%2.2d_%2.2d.txt"

[Perl-unix-users] Upgrading to 5.8.0.804 on linux

2003-01-17 Thread Suresh Govindachar
Hello, My present system: Red Hat Linux 7.1 (OS 2.4.2-2) Output of "rpm -qa | grep -i perl" is: gimp-perl-1.2.1-5 perl-Perl-RPM-0.291-2 mod_perl-1.24_01-2 perl-5.6.0-12 perl-DBD-Pg-0.95-1 perl-SGMLSpm-1.03ii-4

[Perl-unix-users] Raw data to and from network card

2003-01-17 Thread Suresh Govindachar
Hello, >From a workstation -- Linux or Windows -- I would like to: 1) assign my perl script a tcpip port and receive all tcpip data coming into the workstation for that port -- BUT with the tcpip header. OK if the ethernet header is stripped, but the IP and TCP header need to show