Hi,
I am sorry, I don't have permission to install Time::HiRes
So I thought of integrating a java code inside perl. Is it possible to do that? The code is:#!/usr/local/bin/perl
use LWP::Simple;
$url = '
# JAVA COMMAND LINE THAT I HAD DONE FOR GETTING TIME IN MILLISECONDS
$started = `java date`;
print "Started: $started\n";
$content = get($url);
print "Got content\n";
while ($content =~ /<IMG.*?SRC="(.*?)"/gis)
{
print "Getting $1\n";
get($1);
}
#######
$stopped = `java date`;
print "Stopped: $stopped\n";
$elapsed = $stopped - $started;
print "Elapsed: $elapsed\n";
Java Code:
class date
{
public static void main(String args[]) throws Exception
{
System.out.println((new java.util.Date()).getTime());
}
}
Could you please suggest me, how to go about?
Sincerely,
RCSEN