Re: Fwd: Parsing web pages

2017-03-03 Thread Dave Gray
The submodules WWW::Mechanize::Firefox or WWW::Mechanize::PhantomJS are worth a look too, depending on the complexity/js-heaviness of the pages you're parsing and what your setup looks like exactly (full headless; on your computer, etc). On Fri, Mar 3, 2017 at 1:39 AM, Lars Noodén wrote: > On 03

Re: Looking for the online example code that goes with Network Programming with Perl

2015-08-04 Thread Dave Stevens
On Tue, 4 Aug 2015 14:18:01 -0700 Kenneth Wolcott wrote: > On Tue, Aug 4, 2015 at 2:14 PM, Kenneth Wolcott > wrote: > > Hi; > > > > I'm looking for the online example code that goes with Network > > Programming with Perl. > > > > I purchased the book a long time ago and now I have time to go

Re: Unable to call SSH module.

2015-03-12 Thread Dave Horner
::Perl. I did successfully get Net::SSH2 installed on strawberry x64. For example code checkout the Net::SSH2 POD. Let us know if that works for you. Good luck, --dave On Mar 12, 2015 12:27 PM, "Frank Vino" wrote: > Hi, > > Here is my code. In Cpan i have installed ssh i

Re: cygwin64 perl blead YAML and JSON backend chicken and egg.

2014-09-07 Thread Dave Horner
at people might hear and respond. Maybe opening RT tickets would also help get some attention... http://perldoc.perl.org/Parse/CPAN/Meta.html I don't know that I can categorize this properly into a real ticket though, so I'm unsure what or where such an issue should reside. Thanks agai

cygwin64 perl blead YAML and JSON backend chicken and egg.

2014-09-01 Thread Dave Horner
rapping these files manually? Shouldn't a basic backend support for YAML/JSON come out of the box with perl blead? I appreciate any help/guidance. Thanks, --dave https://questhub.io/realm/perl/quest/53d39f40b587a43011000143 http://wiki.cpantesters.org/wiki/YACSmokePOE - built perl using instructions found here.

if(defined(undef)) gives can't use undefined value as a SCALAR reference.

2014-08-30 Thread Dave Horner
undefined value as a SCALAR reference. Could someone please enlighten me on how such a thing is possible? I thought that was the point of defined to test for undef. this is a bizarre result. Thanks everyone, --dave http://dave.thehorners.com/tech-talk/random-tech/522-great-lodge-of-the-royal-order-of-yaks-yak-shaving

Re: cygwin64 perl blead -ldl found but fails to find during compile?

2014-08-12 Thread Dave Horner
eatedly, no matter how hard I stand on space, enter, and space+enter together. I guess I'm going to play with config file modifications...maybe even point it at strawberry's gpg. But I wanted to mention I got perl blead built and that there is a strange infinite loop in the questioning of

cygwin64 perl blead -ldl found but fails to find during compile?

2014-08-10 Thread Dave Horner
(-ldl) to -lgdbm -ldb -lgdbm_compat; and configure now tells me compile OK but produced no output. no makefiles generated. I'm assuming I am getting things mixed up with strawberry mingw and cygwin mingw tools mismatch...but not sure. thanks for any thoughts or suggestions! --dave

Perl Formula Help - Changing a Price in script

2012-03-20 Thread Dave K
Hello - I am new to Perl, and looking for some much needed direction. I am trying to get a basic formula in place (within an existing IF statement) that will serve to increase my price (i.e., "$new_price") by the following formula: =PRICE divided by 0.8 plus 15 In other words, if the Price is e

perl locale issue

2011-10-26 Thread Dave Stevens
X/messages' failed: 35072 at /usr/sbin/logwatch line 870. I have not tinkered with the installation and would much appreciate advice or pointers. Dave -- "It is no measure of health to be well adjusted to a profoundly sick society." Krishnamurti -- To unsubscribe, e-mail:

Net::SCP is saving a file name with a wild card

2011-04-28 Thread Dave Thacker
e "Can't retrieve results"; close LOG; exit; The file I'm retrieving is acme_posting20110415.txt (date changes every day) The file is found, but it's being saved as acme_posting* I'm not specifying a local file name when I get the file, why is SCP saving it under a different name? Thanks in Advance! Dave

RE: Perl modules and epic perl

2011-01-20 Thread DiGregorio, Dave
, January 20, 2011 1:19 PM To: Shlomi Fish Cc: beginners@perl.org; DiGregorio, Dave Subject: Re: Perl modules and epic perl On 20 January 2011 08:45, Shlomi Fish wrote: > I don't know a lot about EPIC, but I know it's been unmaintained since 2007 or > so. While I didn't see

Perl modules and epic perl

2011-01-20 Thread DiGregorio, Dave
So my initial search has shown not too much information. However I am curious how others do this. I want to use my Eclipse IDE to create Perl Modules. Is there a way to do this? Or do I simply have to use the h2xs command then import the files to Eclipse afterwards? Thanks -Dave

Re: Math::GMP

2010-02-25 Thread Dave Tang
orking fine. Cheers, -- Dave Tang -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Math::GMP

2010-02-25 Thread Dave Tang
On Thu, 25 Feb 2010 19:54:13 +1000, Salvador Fandino wrote: On 02/25/2010 07:14 AM, Dave Tang wrote: Dear list, I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I have installed a GMP library (required for Math::GMP) but when I try to install Math::GMP I get an

Re: Math::GMP

2010-02-25 Thread Dave Tang
On Thu, 25 Feb 2010 19:54:13 +1000, Salvador Fandino wrote: On 02/25/2010 07:14 AM, Dave Tang wrote: Dear list, I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I have installed a GMP library (required for Math::GMP) but when I try to install Math::GMP I get an

Re: Math::GMP

2010-02-25 Thread Dave Tang
On Thu, 25 Feb 2010 18:30:33 +1000, Octavian Rasnita wrote: From: "Dave Tang" Dear list, I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I have installed a GMP library (required for Math::GMP) but when I try to install Math::GMP I get an er

Re: Math::GMP

2010-02-25 Thread Dave Tang
On Thu, 25 Feb 2010 17:27:25 +1000, Shlomi Fish wrote: Hi Dave! Hi Shlomi! Thank you for your reply. [snip] I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I have installed a GMP library (required for Math::GMP) but when I try to install Math::GMP I g

Math::GMP

2010-02-24 Thread Dave Tang
0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=6, Tests=0, 0 wallclock secs ( 0.04 usr 0.02 sys + 0.09 cusr 0.03 csys = 0.18 CPU) Result: FAIL Failed 1/6 test programs. 0/0 subtests failed. make: *** [test_dynamic] Error 255 Many thanks, -- Dave

Re: Shorthand for binary bitwise math?

2010-02-22 Thread Dave Tang
On Tue, 23 Feb 2010 11:23:23 +1000, Steve Bertrand wrote: I belong to several technical lists, and the de-facto standard is to Reply-All. Understood and thank you for your answer. -- Dave Tang -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail

Re: Shorthand for binary bitwise math?

2010-02-21 Thread Dave Tang
#x27;s email with my thank you note. -- Dave Tang -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Perl script to monitor memory usage on unix box

2010-02-08 Thread Dave Tang
On Mon, 08 Feb 2010 22:52:37 +1000, Shawn H Corey wrote: Dave Tang wrote: Hi everybody, I want to write a script that checks memory usage of my RHEL box, and ran as a cron job say every 10 minutes. I could write the Perl script to run a system command like "ps aux", parse that i

Perl script to monitor memory usage on unix box

2010-02-08 Thread Dave Tang
to reinvent the wheel and/or write an inelegant script, I wanted to ask if there are CPAN modules, which people have used, to help with achieving my task? Many thanks, Dave -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: speed test

2009-12-04 Thread Dave Tang
On Sat, 05 Dec 2009 10:07:34 +1000, Jenda Krynicky wrote: what was the name of that law? Something that said that the speed of computers doubles every ??? years. Were you referring to this? http://en.wikipedia.org/wiki/Moore's_law Dave -- Using Opera's revolutionary e-mail cl

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Dave Tang
pr.1.gz So on my box, /usr/bin/lpr If you look at that article I sent you previously, it gives some explanation for why you need to reset $ENV{"PATH"} (from memory). HTH, Dave -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- To unsubscribe, e-mai

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Dave Tang
;} = ""; at the start of the script, it doesn't seem to complain any more. This article* provides an explanation. Hope that helps, Dave *http://gunther.web66.com/FAQS/taintmode.html Thanks for helping out. -- Using Opera's revolutionary e-mail client: http://www.oper

Re: Regex to get last 3 digits of a number.

2009-11-24 Thread Dave Tang
On Tue, 24 Nov 2009 18:33:30 +1000, Dermot wrote: 2009/11/23 Dave Tang : On Tue, 24 Nov 2009 09:39:09 +1000, Dermot wrote: 2009/11/23 Dave Tang : On Mon, 23 Nov 2009 23:14:51 +1000, Shawn H Corey Hi Shawn et al., I am also intrigued by the \z anchor. I had a look at perldoc

Re: Regex to get last 3 digits of a number.

2009-11-23 Thread Dave Tang
string (or line, if /m is used) Cheers, Dave -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: AW: Perl CGI Incremental find

2009-11-17 Thread Dave Tang
On Tue, 17 Nov 2009 19:20:42 +1000, Thomas Bätzler wrote: Hi, Jeff Pang wrote: On Nov 17, 2009, Dave Tang wrote: > Is it possible to implement an incremental find* feature on a Perl CGI > page? I'm running Apache2 with mod_perl on linux. > > For example, if I have a lis

Perl CGI Incremental find

2009-11-16 Thread Dave Tang
guage/technology? Many thanks! Dave *http://en.wikipedia.org/wiki/Incremental_find **http://www.google.com/support/websearch/bin/answer.py?hl=en&answer=106230 -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: AW: AW: How do I pick one random element from an array?

2009-11-03 Thread Dave Tang
On Tue, 03 Nov 2009 17:48:55 +1000, Thomas Bätzler wrote: Dave Tang asked: Just a quick question, how does Perl interpret something like $array[0.7995038473872]? Just like $array[ int(0.7995038473872) ], i.e. the floating point number is coerced into an integer value by cutting off the

Re: AW: How do I pick one random element from an array?

2009-11-02 Thread Dave Tang
ay[rand( @array ) ] \n"; b) print "Array of random: " . $array[rand @array] . "\n"; c) my $random_name = $array[rand @array]; print "Array of random: $random_name\n"; HTH, Thomas Hi Thomas, Just a quick question, how does Perl interpret something like $array[0.79

Re: Database Help

2009-10-09 Thread Dave Tang
should I make .. in already existing script where it connects to server. Or smhere else to access.. Please Help !! This is a Perl mailing list. Have a look at these mailing list at http://www.php.net/mailing-lists.php and email them. Dave -- To unsubscribe, e-mail: beginners-unsubscr

Re: Server HELP-urgent

2009-10-07 Thread Dave Tang
the databases to the blast.html and blast.rc file. And that should be it from memory. Hope that helps, Dave -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: BLAST HELP

2009-10-06 Thread Dave Tang
On Tue, 06 Oct 2009 21:34:04 +1000, Jyoti wrote: Thanks for your help Dave. Not a problem Jyo. Yes that was Javascript.. Just as m a beginner, I thot we can convert javascipts to cgi scripts.!!! Am I wrong? You can use Perl to write a cgi script that outputs JavaScript code. You can&#

Re: Error HELP PLZ !!!

2009-10-05 Thread Dave Tang
ng, I am also a beginner Perl programmer. But your validate subroutine looks like JavaScript* code. But I could be wrong. Nevertheless, hope that helps. Dave *http://en.wikipedia.org/wiki/JavaScript #!/usr/bin/perl # standard settings plus call for CGI package #use strict; #use warnings; use CG

Re: BLAST HELP

2009-10-05 Thread Dave Tang
On Tue, 06 Oct 2009 13:33:27 +1000, Dave Tang wrote: On Tue, 06 Oct 2009 12:11:47 +1000, Jyoti wrote: Hello, Hello Jyoti, Can anyone help me to know how to make a script which can take any sequences by user as user input and give blast results as user output. This should work in a

Re: BLAST HELP

2009-10-05 Thread Dave Tang
want to explain your problem in more general terms and elaborate. Thanks in Advance. Kind Regards, Jyo Hope that helps, -- Dave Tang Research Assistant Institute for Molecular Biosciences http://www.imb.uq.edu.au/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional

Re: perldoc output looks strange

2009-09-06 Thread Dave Tang
are not displayed correctly so for example if I wanted to read about data structures perldoc -t perldsc -t Display docs using plain text converter, instead of nroff. This may be faster, but it probably won't look as nice. I guess you can try that. HTH, Dave SYNOPSIS pe

Re: Perl's superior text parsing power

2009-09-02 Thread Dave Tang
On Thu, 03 Sep 2009 13:18:44 +1000, Uri Guttman wrote: "TB" == Tim Bowden writes: TB> On Thu, 2009-09-03 at 11:39 +1000, Dave Tang wrote: >> I wanted to ask why is Perl, in comparison to other programming >> languages, so powerful in text pro

Perl's superior text parsing power

2009-09-02 Thread Dave Tang
question is primarily due to interest and if someday someone asks me how is Perl good for biology (most biological data is stored as flat files). Many thanks, Dave -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- To unsubscribe, e-mail: beginners-unsub

Re: Regular expression help

2009-08-26 Thread Dave Tang
On Wed, 26 Aug 2009 16:41:39 +1000, Chas. Owens wrote: On Wed, Aug 26, 2009 at 02:23, Dave Tang wrote: Dear list, I am trying to import entries in a csv file into a relational database, however there are entries such as: a,b,c,d,e,"f1,f2","g1,g2" which spoil my split

Regular expression help

2009-08-25 Thread Dave Tang
mas and quotes. I could probably come up with a solution but am afraid it will only become more and more ugly. Could someone provide some guidance? Thanks! Dave -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Purpose of $$ in subroutine

2009-08-04 Thread Dave Tang
really good reason. [1] : http://perldoc.perl.org/perlsub.html#Prototypes [2] : http://www.perl.com/language/misc/fmproto.html I will have a read of these along with John's link. Thank you Chas. for your reply. Dave -- Using Opera's revolutionary e-mail client: http://www.oper

Purpose of $$ in subroutine

2009-08-04 Thread Dave Tang
ts purpose in compare($$). Many thanks, Dave -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Perl DBI error

2009-07-07 Thread Dave Tang
that corresponds to your MySQL server version for the right syntax to use near ''tableName'' at line 1 at ./haha.pl line 16. If I change the bind variable to tableName in the SQL and just do $select->execute(), then it works. Any ideas? Many thanks, Dave -- Using O

Re: Hello there

2009-07-06 Thread Dave Tang
inning Perl for Bioinformatics (http://oreilly.com/catalog/9780596000806/)? It is written for biologists who wish to learn Perl. There is also a chapter on using bioperl. Dave -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- To unsubscribe, e-mail: beginners-unsu

perldoc perlboot

2009-06-18 Thread Dave Tang
so $class = Mouse. So when the documentation says SUPER::speak looks in the current package's @ISA for speak, isn't the current package Mouse (which is also $class)? I just don't understand what the note means when it says it does not look in the @ISA of $class. Could some

Efficiently going through results

2009-06-09 Thread Dave Tang
and print out the >=9. Is there a better way of doing this? Cheers, Dave -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: CGI

2009-06-08 Thread Dave Tang
On Tue, 09 Jun 2009 16:16:41 +1000, Irfan Sayed wrote: Hi ALL, i have written sample cgi script in perl. here it is #!/usr/bin/perl print "Content-type: text/html\n\n"; print <   Welcome to CGI scripting           HI Try putting the HI at the start of the line. but when i a

No newlines when writing to a log file

2009-04-30 Thread Dave Thacker
y Finished Transmission at s0005rx Can't make test-send Can't change to test-send directory. Finished Transmission at s0008rx My code is below. I'm looking for nifty timestamp idiom too, but I'll settle for the newlines getting fixed. TIA Dave ---begin code-

Re: Array question

2009-03-30 Thread Dave Tang
I looked up perl -l in man perl and the argument is for octal. Why is that necessary? I also looked up $-, which is the variable for the "number of lines left on the page". Is this an array, since you use it as $-[0]? Thank you, Dave -- Using Opera's revolutionary e-mai

Re: Efficient way of comparing items in an array

2008-10-29 Thread Dave Tang
On Thu, 30 Oct 2008 16:04:31 +1000, Dave Tang <[EMAIL PROTECTED]> wrote: Hi everybody, I am working with a sorted array (sorted from smallest to largest), containing coordinates as such: 13645692 13645693 13645694 13645695 13645696 13645697 13645698 13645699 13645700 13645701 13

Efficient way of comparing items in an array

2008-10-29 Thread Dave Tang
v = $array[$i]; $first = $array[$i]; } } } print "$first - $prev\n"; __END__ Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: perl file parsing

2008-10-23 Thread Dave Tang
h; } } $q->close(); print "Max number of blocks to search: $blockThreshold\n"; print "Number of blocks found in this file: $numFasta\n"; print "Total matches in $blockThreshold blocks: $match\n"; __END__ Dave On Fri, 24 Oct 2008 03:38:33 +1000, minky arora <[EM

Re: using unix command issue...

2008-10-20 Thread Dave Tang
Try moving $utadm_1 up a few lines, before calling the subroutine. #!/usr/bin/perl -w $utadm_l = "/opt/SUNWut/sbin/utadm -l" ; check_LANon () ; sub check_LANon { $LANstat = system(" $utadm_l | grep On") ; print "$LANstat\n" ; } Dave On Tue, 21

Re: writing to a .txt file issues

2008-10-09 Thread Dave Tang
Try taking away the "+" in your filehandle line, so that it reads: open (WRITE,">/Users/dave/Documents/Programming/Perl/081008mathables/add.txt"); Dave On Fri, 10 Oct 2008 09:31:02 +1000, David <[EMAIL PROTECTED]> wrote: open(WRITE,"+>/

RE: regex count

2008-09-23 Thread Dave
Hello Stephen, I think the problem might be with your regular expression and not $x. If your regular expression does not match the current line then every line will be skipped. What does the line that is being processed look like? Dave -Original Message- From: Stephen Reese [mailto

RE: pattern matching question

2008-09-22 Thread Dave
d). Hope this helps. Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Only getting format header on first file of a series

2008-09-03 Thread Dave Thacker
On Tuesday 02 September 2008 09:15:59 Rob Dixon wrote: > Dave Thacker wrote: > > On Monday 01 September 2008 20:29:27 Rob Dixon wrote: > >> $- = 0; > > > > Unfortunately, there's no change after inserting that assignment. > > Thanks for the other info on

Re: Only getting format header on first file of a series

2008-09-01 Thread Dave Thacker
o attack this? TIA, Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Only getting format header on first file of a series

2008-09-01 Thread Dave Thacker
Thanks for the help you folks gave me on my format problems earlier. I've resolved those problems and moved to another! My program is supposed to create a series of roster files. It creates the files, but only the first file gets the header I defined in RF_TOP. What do I need to change? T

Missing Termination in FORMAT

2008-09-01 Thread Dave Thacker
ring terminator "" anywhere before EOF at ./roster-report.pl line 54. I *think* I've get everything set up properly, and I'm not sure what I'm missing. The script is below. Please give me a pointer to the error. TIA Dave #!/usr/bin/perl use strict; use DBI; use

print a line of repeating chars to a file

2008-08-31 Thread Dave Thacker
I want to print a line of 50 "-"'s to a file. This is my non-working syntax. #!/usr/bin/perl open (FOO, "foo.out"); print FOO repeat(50,"-"); close FOO; Undefined subroutine &main::repeat called at ./foo.pl line 4. Whats the correct syntax for doing this

Re: How to split a large string with repeating delimiters into multiple substrings

2007-05-25 Thread Dave Gray
Hi Michael, On 5/23/07, Michael Goopta <[EMAIL PROTECTED]> wrote: How can I split the below string and get the multiple web-addresses in a list: (i.e. the strings between and http://view-preprod.admission.net/abc/mactive/_NJMG_0002029003-01/i-1.JPG?t=tr/m:FitPad/w:199/h:124&t=ts/r:199x199http

XML::Writer....Lessons Learned

2007-04-27 Thread Dave Adams
Because I am not a very good perl programmer (but working on it) an unable to answer most of the questions from the group, I thought I could at least contribute what I have learned so I can help others that are in my position. Today I learned something about XML::Writer where I was using single q

XML::Writer creates a file but fails to be recognized

2007-04-26 Thread Dave Adams
When generating a file with XML::Writer the script certainly builds the file but when I go to test for it, it fails. Does anyone have a reason why? How do I create a file that I can use in the rest of my script? use XML::Writer; use IO::File; my $output = new IO::File(">test.xml"); my $writer =

Re: Retrieving a web resource (GET) for parsing

2007-04-06 Thread Dave Gray
On 4/6/07, yitzle <[EMAIL PROTECTED]> wrote: If I want to parse a few web pages, what's the best way to retrieve them? Should I just run `wget "$url"`? LWP can do this for you. If you want more complicated interactions, WWW::Mechanize

Re: removing special characters

2007-04-04 Thread Dave Gray
On 4/4/07, Michael Gargiullo <[EMAIL PROTECTED]> wrote: I have a log file I'm parsing that has special characters at the end of each row. In vi it appears to be ^@ I've already tried chomp and s/\^\@// Neither work. Does any one have any ideas? You can match what vi(m) displays as '^@'

how to use xml::simple with nested for loops???

2007-04-03 Thread Gauthier, Dave
o" as an array. I'm wide open as to suggestions on how to accomplish this. If foreach can be used somehow, I'm wide open to that. Any ideas? Thanks in Advance -dave

Not an ARRAY reference. Problems reading a simple XML file

2007-04-02 Thread Dave Adams
My script is having problems reading and XML file with only one record in it. When I add two or more records, there are no problems. The error is "Not and ARRAY reference.." Here is the PROBLEM xml file (test.xml): FBIS2004 CP1 Here is the WORKING xml file: FBIS2004 CP1 FBIS2005 C

Re: How do I generate a hash from an xml document?

2007-03-27 Thread Dave Adams
# Prints the values of the hash print "Hash Values Output: \n"; foreach my $value_values (values %starrecords) { print "$value_values\n"; } On 3/26/07, Rob Dixon <[EMAIL PROTECTED]> wrote: Dave Adams wrote: > > What are the general steps to buildin

How do I generate a hash from an xml document?

2007-03-26 Thread Dave Adams
What are the general steps to building a hash from and xml document? Here are my steps: 1. Read in xml document using XML::Simple 2. Create and empty hash 3. Loop through $VAR1 (the anonymous datastructure) and populate hash Is this the general idea or is there a simplier way? Thanks to all, D

Re: File::Find again

2007-03-26 Thread Dave Gray
On 3/25/07, Alan <[EMAIL PROTECTED]> wrote: On Sunday 25 March 2007 18:14, Matt Herzog wrote: > This is all I needed. I swear I had " /($searchstring)/; " in there at > some point before . . . so if I pass it > > -s "\.properties$" > > at the command line, it works as expetcted. Nice. That migh

Re: Regular expression, "not this string"

2007-03-12 Thread Dave Cardwell
Rob Dixon wrote: Dave Cardwell wrote: Rob Dixon wrote: Dave Cardwell wrote: Hello there, I'm having trouble constructing a regular expression that would do the following: FOO... ...followed by anything but BAR (non-greedy)... ...followed by BAZ (captured)... ...followed by anything bu

Re: Regular expression, "not this string"

2007-03-12 Thread Dave Cardwell
Rob Dixon wrote: Dave Cardwell wrote: Hello there, I'm having trouble constructing a regular expression that would do the following: FOO... ...followed by anything but BAR (non-greedy)... ...followed by BAZ (captured)... ...followed by anything but BAR (greedy)... ...followed by BAR

Re: Regular expression, "not this string"

2007-03-12 Thread Dave Cardwell
t clearer to me, thanks. I'll take another look at the perlre now I see what it's getting at. -- Best wishes, Dave Cardwell. http://perlprogrammer.co.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Regular expression, "not this string"

2007-03-12 Thread Dave Cardwell
ative look-ahead, but I haven't used this area of regular expressions before so I'm struggling. A solution or prod in the right direction would be lovely. -- Best wishes, Dave Cardwell. http://perlprogrammer.co.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

term::readline, need to change default prompt char props

2007-02-23 Thread Gauthier, Dave
al type, maybe... Enter a color: Is there a way I can get a handle on this? Also, while I've got your attention, the up/down arrows (prev/next in the history of commands) seem to work, but you have to hit the up or down arrow twice before it'll respond. Any ideas? Thanks -dave

How to mimic a CLI using perl with STDIN

2007-02-15 Thread Gauthier, Dave
I would like to mimic linux command line behavior from inside a perl script. I guess the only thing I'm missing us the up/down arrow behavior (scrolll up/down the previous input line(s) stack) Is there a way to do this? Thanks -dave

RE: soap with attachments

2007-02-06 Thread DiGregorio, Dave
P.S. this is one of the errors I get. Modification of non-creatable array value attempted, subscript -1 at C:/Perl/site/lib/SOAP/MIME.pm line 435. Thanks DRD -Original Message- From: DiGregorio, Dave [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:08 PM To

soap with attachments

2007-02-06 Thread DiGregorio, Dave
I need to send an attachment over soap. I have found little documentation on this topic. I am trying to use the method below but can not seem to get it to work. The attachment needs to come after the closing envelop tag. Anyone have any experience here? my $CID = "template" ; my $

split w. regex question/problem

2007-02-02 Thread Gauthier, Dave
o "abcdef=In", I get 6 unwanetd null elements (one per char before the "="). I was expectiing a single element list with arr[0] = "=". What's Up ? Is ther a clen way to prevent creating these unwanted elements? Thanks in Advance -dave

IPC problem

2007-02-02 Thread Gauthier, Dave
oto top; Debug statements indicate that the "print WR "2" " happens but then it stalls. Maybe a broken pipe(s) into/out of the spawned proc ??? Any suggestions? Thanks -dave

Perl Soap::Lite Help

2007-01-26 Thread DiGregorio, Dave
I am using soap from a client to talk to a server. However on the server side the java requires a type vector. Does anyone know how to use perl soap to create a data type vector? I have so far been unsuccessful finding any information on the web to do this. Thanks David R. DiGregori

Re: HoHoH

2007-01-09 Thread Dave Gray
On 1/9/07, oryann9 <[EMAIL PROTECTED]> wrote: I have a HoHoH structure that looks like after running print Dumper (\%hash); 'prlhNSSA' => { '1499' => { 'gecos' => 'First Name Last Name,CIS,location,

Re: Checking for infinite loops

2007-01-09 Thread Dave Gray
On 1/8/07, hOURS <[EMAIL PROTECTED]> wrote: Hi everyone, Jay offered me the following code to help with something. I don't undertand it, but tried to use it anyway to see if it would work. The computer told me there was a syntax error in the area I highlighted in color. I can't find it

First program

2007-01-08 Thread Dave Moore
Hello list- I've recently decided to learn a programming language, and for reasons beyond the scope of this post I chose Perl. I've read some books, and I decided to make a dice-rolling IRC bot. I wanted to use POE::Component::IRC because it looks really cool.. unfortunately I don't know very muc

Re: win32::guitest

2007-01-05 Thread Dave Gray
On 1/5/07, MGautam <[EMAIL PROTECTED]> wrote: Hi, How do we use win32::guitest to get a particular content of the webpage into a variable. I have a task: 1) open a browser 2) hit the url 3) hit few tabs and fill the required information then "submit" the form 4) after submit, it leads to new pa

Re: How to pull Text from a PDF using Perl?

2007-01-04 Thread Dave Gray
`$pdftotext -layout $inputfile -`; for my $page (@pages) { # do stuff } Without the -layout switch, parsing any sort of tabular data becomes a lot more annoying. Cheers, Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: time limited STDIN

2007-01-04 Thread Dave Gray
On 1/4/07, Saurabh Singhvi <[EMAIL PROTECTED]> wrote: Hi all, I wanted to know a way of taking a time limited STDIN. Say for eg after 3 seconds, the STDIN should stop waiting and move forward. How do I do this?? I was trying with unless ($child) { sleep($waittime); `echo "\n"`

Re: Other ways to assign a filehandle to a variable?

2006-07-27 Thread Dave Gray
For posterity: -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: MySQL question

2006-07-24 Thread Dave Gray
On 7/21/06, Karjala <[EMAIL PROTECTED]> wrote: Maybe I should ask this question on a database list, but it's related to DBI, so I'm asking here also: I have a field in a record in the MySQL database that contains a number. I increase it by one with $dbh->do("update table set myfield = myfield +

Re: Randal L. Schwartz is Wrong (WAS:write out filenames of files existing on a filesystem into afile)

2006-07-13 Thread Dave Gray
Don't splice into an arrayref returned from $sth->fetchrow_arrayref() (unless you make a copy of it first) when using DBD::mysql or you will probably segfault the next time around the loop. Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Slurping a big file (WAS: Netiquette)

2006-06-24 Thread Dave Gray
On 6/23/06, Omega -1911 <[EMAIL PROTECTED]> wrote: On 6/23/06, Dave Gray <[EMAIL PROTECTED]> wrote: > On 6/23/06, Omega -1911 <[EMAIL PROTECTED]> wrote: > > Shawn, I modified your example like so, was this correct? > > > > chomp( my $data1 = ); # lin

Slurping a big file (WAS: Netiquette)

2006-06-23 Thread Dave Gray
On 6/23/06, Omega -1911 <[EMAIL PROTECTED]> wrote: Shawn, I modified your example like so, was this correct? chomp( my $data1 = ); # line 1 chomp( my $data2 = ); # line 2 chomp( my $data3 = ); # line 3 chomp( my $data4 = ); # line 4 chomp( my $data5 = ); # line 5 while( ){ c

Re: An array like line that I do not understand

2006-06-16 Thread Dave Gray
; # prints keyline 4 ea found print ++$found_tally," '$search' @$keyline\n\n"; last; } } } } Notice that the first three matches are the same, and the word build occurs 3 times in that one @$keyline array. Sounds like you wa

desktop application

2006-06-13 Thread Dave Pollak
I'm a Perl newbie with some PHP and ColdFusion experience. My employer has a book on cd that he wants to convert to a desktop application so it will be interactive and secure. He wants each copy licensed to a machine and wants it to be able to interact with a Windows desktop with popups out of

Re: Servlet

2006-06-05 Thread Dave Gray
On 5/30/06, Tom Allison <[EMAIL PROTECTED]> wrote: How can I impliment a Servlet in Perl without writing my own http server or running apache? What exactly are you trying to do? I assume you didn't get a response because you weren't very specific. -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: What are the most successful applications of Perl? Thanks.

2006-05-23 Thread Dave Day
How about Amazon.com and Ebay.com??? Dave - Original Message - From: "Japerlh" <[EMAIL PROTECTED]> To: "beginners" Sent: Tuesday, May 23, 2006 7:41 AM Subject: What are the most successful applications of Perl? Thanks. What are the most successful ap

  1   2   3   4   5   6   >