# this is an example script
#!perl -W
use strict;
use Tk;
my $safe=0;
sub newm {
if ($safe==0) {
$safe=1;
my $newm=new MainWindow;
my $but=$newm->Button(
-command=>sub{$safe=0;$newm->destroy;},
-text=>'OK2',
)->pack;
}
}
my $main=new MainWindow;
my $but1=$main->Button(...
Im having problem with this
the error is on the receiver
cannot print sockets
"Use of uninitialized value in print at D:\re.pl line 18, <GEN1> line 1."
please help me
#!perl -w
# sender
use IO::Socket;
&comunicate;
sub comunicate {
print "Mes :";
my $message = <STDIN>...
I know that
$time=localtime(time);
print $time;
it works and prints the entire time , date ......
1- I would to know how to calculate milliseconds
2- And how to calculate the time lenght of a function in milliseconds (cant seem to quite get it right!)
ex: file scan of entire hard drive (the...
Please help me.
I dont want to go through this.
$rep=<stdin>; chomp $rep;
$rep=~tr/Yy/1/;
if ($reponse==1) { }
I would like to know how to make the script accept only "Y" as its answer. I've been told perl does not recognize letters. I've heard it can be done by something like...
Does anyone know where I can get a list of hexadecimal values for every character??
ex: a = 0x23
A = 0xb1 and so...
This will be greatly appreciated! Knowledge is the first step to Greatness!!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.