Re: No-brainer, pressed for time

2006-05-19 Thread Basil Daoust
@list1 = qw( artist awful billy blunder) @list2 = qw( attitude blatherskite) # something magical happens, and the contents of @list1 are now # 'artist', 'attitude', 'awful', 'billy', 'blatherskite', 'blunder' If the lists aren't too large, here's what I'd do: @list1 =

Re: Need help with IMG tag containing unbalanced parentheses

2006-05-16 Thread Basil Daoust
I need find the IMG tag in the line below, substituting for it the phrase, IMAGE REMOVED *** P align=centerIMG SRC="" ALT=LARGE-CAP VALUE INDEX FUND LOGO)/P *** Notice the unbalanced parentheses. There is no opening parenthesis to match the closing one. I have used the following

Re: renaming files in XP

2006-03-21 Thread Basil Daoust
Same kind of question: if this works from a DOS command prompt in Windows XP: C:\rename \test2\filea fileb C:\ls \test2 fileb why doesn't $x=`rename /test2/fileb filec`; the $x = null or empty. the rename(old,new) did work. It even MOVED the file.

Perl Tk questions

2005-03-07 Thread Basil Daoust
I've included a little program here. What I'm trying to do is run a timer when no keyboard or mouse activity is active. As soon as something happens reset my timer. Ideally it would target a window that isn't associated with this window, but since its just a helper for me as long as the bind

RE: Sorting by value

2005-02-15 Thread Basil Daoust
What happened to the perldoc -q FAQ it seems to have been replaced by a FAQRegex? I recently installed 5.8 and no longer have the old FAQ to search through. perldoc [options] PageName|ModuleName|ProgramName... perldoc [options] -f BuiltinFunction perldoc [options] -q FAQRegex

Re: Is there a standard for sending and receiving between applications using sockets?

2004-12-13 Thread Basil Daoust
messages over a network. In the end it means your responsible for tracking lost messages they won't be retried. Basil Daoust Automation Services___ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Graph::Weighted question (Single Source Spanning Tree)

2004-04-13 Thread Basil Daoust
I desire to calculate the shortest path from L1 to L4 (In the simple example). Now I found these wonderful looking graph function, but I'm obviously missing something. --- sample code use warnings; use strict; use Graph::Weighted; my $g = Graph::Weighted-new( data

Re: Graph::Weighted question (Single Source Spanning Tree)

2004-04-13 Thread Basil Daoust
Printing the results from the $SSSP graph turns out to be a little more entailed then I thought... pulled out the book that pointed me to the graphs in the first place. Anyway: print @{ $SSSP-get_attribute(path, L4)}\n; #turned out to print that string L1 L5 L99 L4 that I was looking for.

Re: LWP or something similar

2003-12-12 Thread Basil Daoust
Goodness I hope not without logging into the server, because a lot of security would be going out the window. Basil Daoust Automation Services Greg [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 12/12/2003 11:15 AM To: [EMAIL PROTECTED] cc: Subject: LWP

RE: UDP server howto?

2003-10-01 Thread Basil Daoust
would a TCP broadcast achieve your goal? remember that UDP is not guarantied traffic it can be discarded on a whim. ___ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: UDP server howto?

2003-10-01 Thread Basil Daoust
with cygwin installed. cygwin is just used to time stamp and check dates so this could easy be removed and if you turn off log writing etc. I used the date to check if I should rotate the logs. Well find attached two .pl files. Basil Daoust Automation Services (See attached file: listener2.pl)(See

RE: File::NCopy is giving error

2003-07-23 Thread Basil Daoust
Did you try a none perlish solution like `copy \\Test/x.txt, C:\Temp`; Or something like that? Basil pijush koley

Re: Writing to output file on Solaris

2003-03-18 Thread Basil Daoust
Seems to me if you want to view the file while your aps running you probably should be closing the file between writes anyway. Just a though. Basil

RE: Sorting Hashes of Hashes

2003-03-13 Thread Basil Daoust
Sharon writes.. I have a hash of hashes. The main key is the order number. Then that order has a hash of info, for which the key/values are shown below. I have the retrieve and display code working. What I really want to do is sort by the DATE. I figured out how to sort by the order number

Re: path to perl

2003-02-20 Thread Basil Daoust
myprog.pl to c:\myprog Basil Daoust Automation Services ___ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: regex and html

2003-02-06 Thread Basil Daoust
2. You are playing with fire doing direct substitutions on HTML. Instead it is often better to use HTML::Parser and let it tokenize tags for you. (There have been lots of threads on this.) But if your HTML is simple enough, then you can still use the above. HELP! I've tried to use

Re: @ARGV with service

2003-01-20 Thread Basil Daoust
using @ARGV I have yet to understand the love of this array. Maybe I'm just plain silly but I like to use real variable names and stuff so I usually do something like my $param = shift || ; this was I don't get yelled at when I use warnings if no param inputted and I can use a

RE: cmd.com

2002-12-23 Thread Basil Daoust
You can also just throw in a * into a win2k cd command and if it resolved to one address it works. This is enabled and requires no registry changes. Basil Daoust Automation Services ___ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http

RE: regex question

2002-12-02 Thread Basil Daoust
My problem with MODULES is you must also install them everywhere, if you use one that is outside the default installation. Of course the PASRE is not in the category with Activeperl. One also must take the time to understand HOW the module works. I quickly scanned PARSE when I went to use it and

Re: Question about split

2002-11-27 Thread Basil Daoust
I think so, to replace all , with null in $_ try s/,//g; Basil Daoust Moreno, Javier \(GXS

Re: Question about split

2002-11-27 Thread Basil Daoust
To remove all commas from a string you could just do: $string =~ s/,//g; or s/,//g; if data in $_ Or do I not understand the problem? Basil Daoust Automation Services