Hallo,
I have a problem with my DHCPSniffer.
Following is my script:
#!/usr/bin/perl -w
use strict;
use Net::PcapUtils;
use Net::DHCP::Packet;
use NetPacket::Ethernet;
use NetPacket::IP;
sub process_pkt {
my($user, $hdr, $pkt) = @_;
my $p = NetPacket::IP::strip(NetPacke
Hello,
is there some kind of parser for perl source ? Lets we have for
example this message as the source (input), I'd like to have all
valid perl lines in variable.
#!/usr/bin/perl -w
use strict;
my $something = 2000;
for (0 .. $something) {
print $something, "\n";
}
__DATA__
this line too
Please pardon me from posting the question here...
can any tell how I call Java class files from Javascript...
Thanks
Anish
Gidday all,
I am currently using HTML::Treebuilder to get the img tags and anchor tags from
html source code.
How can I return the content of a tag rather than the value of its attributes.
In my html source I have a h1 tag with and id="pagetitle"
I want to get the contents of this for my bread
|-Original Message-
|From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
|Sent: Thursday, May 12, 2005 3:01 AM
|To: beginners@perl.org
|Subject: calling a separate perl script from within another perl script
|
|
|All,
|
|I have done some reading and know there are various way to do this, bu
> Hallo,
> I have a problem with my DHCPSniffer.
> Following is my script:
>
>
>
>
> 2.It displays something ;-(
>
Hello,
For those interested in the solution,
here is the working script:
#!/usr/bin/perl -w
use strict;
use Net::PcapUtils;
use Net::DHCP::Packet;
use NetPacket::Ethernet qw(:
Hi,
I am running a test which uses PVA_abbr_map and fails while checking the
property EastAsianWidth:A. Is it possible (the pl file says not allowed) to
manually modify PVA.pl (the order of properties in PVA_abbr_map) and get
perl -d to run according to the new order ?
e.g. the test originally
On Thu, 12 May 2005, Rajarshi Das wrote:
> I am running a test which uses PVA_abbr_map and fails while checking
> the property EastAsianWidth:A. Is it possible (the pl file says not
> allowed) to manually modify PVA.pl (the order of properties in
> PVA_abbr_map) and get perl -d to run according to
The chunk of perl code written below shows the way I have been using
the scalar referencing technique available in perl.
$a="X15565/X123/35";
$b="n245";
${$a."\t".$b}=0.598; ### <<== Scalar Referencing
$x=tracename (1056.45,1076.56); ## returns X15565/X123/35
$y=tracename (234,34.89); ## re
- Original Message -
From: "John W. Krahn" <[EMAIL PROTECTED]>
To: "Perl Beginners"
Sent: Wednesday, May 11, 2005 5:02 PM
Subject: Re: rename files
[EMAIL PROTECTED] wrote:
Hi,
Hello,
I want to rename all the files in a directory with filenames starting
1.jpg to n.jpg.
Why this code do
Madhur Kashyap wrote:
The chunk of perl code written below shows the way I have been using
the scalar referencing technique available in perl.
$a="X15565/X123/35";
$b="n245";
${$a."\t".$b}=0.598; ### <<== Scalar Referencing
$x=tracename (1056.45,1076.56); ## returns X15565/X123/35
$y=tracenam
Hey, all.
I'm looking for some advice. I'm using Perl for a tournament swiss-pairings
program, and I've gotten to where I want to tack on a graphical user
interface.
My primary reason for using Perl is that it'll run everywhere, and I'd like
for my graphical interface to be easily installed and u
I have a eps form that i use enscript to late the image 8 1/2 x 11. I
then so enscript to lay my ascii text onto of my form and send it out
via hylafax.
PRoblem is we want to start having better looking forms and I need a
way to postion text rather then doing it with newlines, printf, and
tabs.
I
Hi,
I want to create compressed dynamic pages in order to let them transfer
faster.
What do you suggest using for compressing them?
"deflate", or "gzip"?
Which method is faster and compress better?
Are there any reasons I'll better not use compression?
Thank you.
Teddy
--
To unsubscribe,
- Original Message -
From: "Moon, John" <[EMAIL PROTECTED]>
To: "'Tham, Philip'" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, May 10, 2005 4:55 PM
Subject: RE: Help with substitution
To: 'Tham, Philip'
Subject: RE: Help with substitution
Subject: Help with substitution
Hi
I have a string whic
I need some help with the following regex problem.
I am not able to achieve the desired result.
The substitution should succeed only of the ">" is not present between
the string ").*refresh//;
print "a=$a\n";
print "b=$b\n";
Desired result is
a= kdkdk >
b="abcd dkd refresh kdkdk >";
--
To u
Tham, Philip wrote:
> I need some help with the following regex problem.
>
> I am not able to achieve the desired result.
>
> The substitution should succeed only of the ">" is not present between
> the string " brackets question mark but none of the combinations are working.
>
> Thanks in advan
Gidday all,
How can I parse HTML to find comment tags
Specifically.
It works. Thanks.
-Original Message-
From: Wagner, David --- Senior Programmer Analyst --- WGO
[mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 3:18 PM
To: Tham, Philip; [EMAIL PROTECTED]; beginners@perl.org
Subject: RE: Not getting the desired results with regular expression
Tham
Tham, Philip wrote:
I need some help with the following regex problem.
I am not able to achieve the desired result.
The substitution should succeed only of the ">" is not present between
the string "
#!/usr/local/bin/perl
$a="abcd ";
$b="abcd dkd refresh kdkdk >";
$a=~s/^.*).*refresh//;
print "a=
PVA.pl (PVA stands for Property Value Aliases) is a runtime file for unicode
which is generated by the
mktables utility using the file lib/unicore/PropValueAliases.txt.
One of the properties in PropValueAliases.txt is EastAsianWidth for which
'A' is a value which stands for 'Ambiguous'.
The fil
Mason Loring Bliss wrote:
>Hey, all.
>
>I'm looking for some advice. I'm using Perl for a tournament swiss-pairings
>program, and I've gotten to where I want to tack on a graphical user
>interface.
>
>My primary reason for using Perl is that it'll run everywhere, and I'd like
>for my graphical int
22 matches
Mail list logo