Problem display DHCP Packets with Net::Pcap,Net::DHCP and NetPacket

2005-05-12 Thread Holger Wöhle
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

parser for perl source

2005-05-12 Thread Ing. Branislav Gerzo
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

Java class files from Java Script

2005-05-12 Thread Anish Kumar K
Please pardon me from posting the question here... can any tell how I call Java class files from Javascript... Thanks Anish

Parsing HTML

2005-05-12 Thread colinjohnstone
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

RE: calling a separate perl script from within another perl script

2005-05-12 Thread Manav Mathur
|-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

AW: Problem display DHCP Packets with Net::Pcap,Net::DHCP and NetPacket

2005-05-12 Thread Holger Wöhle
> 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(:

modify PVA.pl (z/OS and perl-5.8.6)

2005-05-12 Thread Rajarshi Das
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

Re: modify PVA.pl (z/OS and perl-5.8.6)

2005-05-12 Thread Chris Devers
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

Are there any Cons of Scalar Referencing??

2005-05-12 Thread Madhur Kashyap
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

Re: rename files

2005-05-12 Thread perlocean
- 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

Re: Are there any Cons of Scalar Referencing??

2005-05-12 Thread John W. Krahn
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

Advise me? Seeking GUI toolkit...

2005-05-12 Thread Mason Loring Bliss
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

Text Postioning / Postscript / Enscript - Hylafax

2005-05-12 Thread Paul D. Kraus
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

deflate

2005-05-12 Thread Octavian Rasnita
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,

Re: Help with substitution

2005-05-12 Thread perlocean
- 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

Not getting the desired results with regular expression

2005-05-12 Thread Tham, Philip
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

RE: Not getting the desired results with regular expression

2005-05-12 Thread Wagner, David --- Senior Programmer Analyst --- WGO
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

Finding comment tags

2005-05-12 Thread Johnstone, Colin
Gidday all, How can I parse HTML to find comment tags Specifically.

RE: Not getting the desired results with regular expression

2005-05-12 Thread Tham, Philip
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

Re: Not getting the desired results with regular expression

2005-05-12 Thread John W. Krahn
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=

Re: modify PVA.pl (z/OS and perl-5.8.6)

2005-05-12 Thread Rajarshi Das
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

Re: Advise me? Seeking GUI toolkit...

2005-05-12 Thread Daniel Kasak
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