|
XML::Parser tree/object parse results usage. Hi, I'm parsing some relatively complex XML files, but actually only need to access a couple of the bits of information stored with them. I thought about coding some kind of parser myself, but am fighting the urge to persevere with the XML::Parser module. So. I use XML::Parser in "Tree" mode to create a big ... 22 Feb 2006 16:55
perl/expect.pm manual user input I have a script that I am automating where occasionally the script requires manual user input. If I simply tell expect.pm to send default values (\n), the scripts work fine. However, when I remove one of the checks and wish the user running the expected automated script to be allowed to manually enter one of th... 19 Feb 2006 19:54
Problem reading & displaying MHTML file type Hi, I have a small piece of code where perl reads an .HTM file and displays it in your browser: #!/usr/bin/perl use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); use strict; open (FH, "<page.htm") or die &error; my @page = <FH>; close(FH); print "Content-type: text/html \n\n"; print @page... 15 Feb 2006 17:05
random fortune cookie Hi, I got a file with many quotations by Larry Wall. The file uses the fortune cookie format: All language designers are arrogant. Goes with the territory... :-) -- Larry Wall in <1991Jul13.010945.19157(a)netlabs.com % Although the Perl Slogan is There's More Than One Way to Do It, I hesitate to ma... 17 Feb 2006 20:09
Can I Grep multiple lines?? Dear All, I am trying to match a specific pattern using grep. my @results=grep(/$cominput/,@common); print "@results"; Naturally,Grep is only printing the lines that variable '$cominput' is found on. My dilemma is I want to print a pattern. Specifically, where variable '$cominput' is found all the way until ... 13 Feb 2006 03:52
use library I have to untangle somebody else's code and I ran accross the pragma "use library". I cannot find in the "Programming Perl" or anywhere else. Can somebody tell me what that pragma does or where to find the description? TIA ... 16 Feb 2006 15:28
Help to parse text file Hi, Iam new to perl and iam still reading up on regular exp and modules (its something that can be extended for a long time ) !! I want to build a parser/lexer (which is more appropriate ?) for a text file which has a format similar to an xml file. <GRAPH NAME="471138343152490055" VERSION="V3.0" APP_VERSION="2.7... 9 Feb 2006 04:41
Morse code audio playout? I want to write an open source script which does similar to the CGI here... http://morsecode.scphillips.com/translator.html He only shares the Java version and not the CGI. So I am thinking to trump him by writing my own, as best I can, and giving my own away for free. Some time back I heard of a morse-to-a... 6 Feb 2006 09:28
Can someone write me a simple Perl script for a few bucks? Can someone out there write me a little Perl script? It'd be a dead simple program, and I can pay you for your time and trouble. Basically all it has to do is look at the contents of a directory, and output a text file whose exact contents would depend on the names and numbers of files in that directory. Bonus po... 6 Feb 2006 18:51
FAQ 4.7 How do I multiply matrices? This is an excerpt from the latest version perlfaq4.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . --------... 2 Feb 2006 06:36 |