I am writing a perl code(windows) to traceroute IP address and to print the output.
Could anyone please supply the code.
I had executed the below code which was taken from cpan modules
Code:
#!C:/perl/bin/perl.exe
use Net::Traceroute;
$tr = Net::Traceroute->new(host=> "google.com");
if($tr->found) {
my $hops = $tr->hops;
if($hops > 1) {
print "Router was "
I am writing a perl code(windows) to traceroute IP address and to print the output.
I had executed the below code which was taken from cpan modules
Code:
#!C:/perl/bin/perl.exe
use Net::Traceroute;
$tr = Net::Traceroute->new(host=> "google.com");
if($tr->found) {
my $hops = $tr->hops;
if($hops > 1) {
print "Router was " .
$tr->hop_query_host($tr->hops
I have just started with Learning Perl (6th edition) and am new to programming.
I am trying to use the following conventions I have been instructed to use for good/proper/safe Perl code for my "Hello, World!" Program:
use strict;
use warnings;
I have created and successfully run the following "Hello, World!" program using (Strawberry) Perl 5.12 on my main Windows 7 OS:
#!/usr/bin/perl
use str
Hi,
I am trying to run Perl on Fedora17 ...
This is my perl code...
> #!/usr/bin/perl
> #print "test\n";
I have saved it in Desktop using VI editor and was running using kconsole, perl test1.pl
I am expecting a output, 'test' in my screen...But, nothing appears...
And, when I create a direct text file from Desktop IDE, 'HelloWorld.pl' and run using kconsole, I
Hello,
I'm trying to figure out why this perl command does not work.
Hi
When executing the following perl statements on Fedora-13, error messages will be output.
statement:
Code:
use strict;
use warnings;
my $tr = `ls`;
error messages:
Code:
Can't exec "ls": No such file or directory at test.pl line 3
But if I use absolute path `/bin/ls` instead of `ls` in the line 3. It worked fine. Perl version is v5.10.1.
This only happens on Fedora-13.
Hi experts,
I am coming to you with this basic question on copying a folder and its content from one location to another folder using PERL script.
This is my requirement.
I have a folder AB under /users/myhome
I want to copy AB and its contents to /user/workspace.
Finally it should look like, /users/workspace/AB
How to do it using perl?
I need use smartcard reader with pcsc, pcsc-toolsbut, pcsc-tools depend on gtk2-perl.and I can not find gtk2-perl at extra or ccr.can Chakra team add gtk2-perl in ccr ?gtk2-perlDependencies gtk2 pango-perl perl-extutils-depends (make) perl-extutils-pkgconfig (make) ttf-dejavu (check) xorg-server-xvfb (check)Required By&#
The following perl statement in a bash script consists of two substatements. I intend the first perl substatement (the assignment with glob) to get input from the preceding bash pipe, and the second perl substatement (the foreach loop) to output back to bash.