Re: Using use module in multiplatform environment.

2004-07-06 Thread Mike Jackson
check your platform somehow, and make modules for each that expose a common interface, so you can pull one out and drop in the other with a minimum of fuss. you could then eval{} the correct one, or put them in separate files and do() the filename. both of these are somewhat similar to the use

Re: Unable access the Ms Access database through CGI

2004-06-26 Thread Mike Jackson
is that a user dsn or a system dsn? you'll need to check what username your cgi script runs as, and whether or not that account has permissions to access the database, and whether or not that account can access the DSN. Most web servers start cgi scripts as the user 'nobody' or 'www' or

Re: Need help on generating hash of records

2004-06-26 Thread Mike Jackson
you want the nodename to reference the hash of details in the node, like this: servername = { longName = , nics = [ ... ], attachedNodes = { node1name = [ { ip = data, mask = data }, ], node2name = [ { ip = data, mask = data }, ], } } so that you'll be able to

Re: Need help on generating hash of records

2004-06-26 Thread Mike Jackson
guess what you have shown works for it. I just need help in the form of code I requested - because I couldn't find elaborate examples. Thanks -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Saturday, June 26, 2004 2:11 PM To: Viswanatha Rao; [EMAIL PROTECTED] Subject: Re

Re: need help printing data tree structure

2004-06-23 Thread Mike Jackson
though I've never used it, I am told that Data::Dumper does this... check cpan if you don't have it On Wed, 23 Jun 2004 13:29:44, Jaime Teng [EMAIL PROTECTED] wrote: Hi, I am trying to write a routine that would print out the value(s) of the entire variable either it be scalar, hash or array:

Re: Convert .bat files to .com

2004-06-11 Thread Mike Jackson
.com files are fundamentally different to .bat files: a .bat file holds a list of commands to be executed by the shell/command interpreter. a .com file is a compiled, native machine code binary program. To convert one into the other, you would have to write a program that creates a .com file

Re: peal search/replace question...

2004-06-01 Thread Mike Jackson
I think you're best off trying the following regex: s:qtd:\Q/td\E:gs; \Q..\E ignore ANY special characters between them, with the possible exception of \ itself. $variables are interpolated before this occurs, so you can validly go sblah\Q$something\Egs; if you so wish - using the s''' form will

Re: thread ping

2004-06-01 Thread Mike Jackson
I don't think using hires() in a threaded app is a great idea - ping/hires() calls are generally implemented by hogging the cpu, which would skew other results. Apart from that, looks like a perfectly legitimate threaded multi-host pinger :) each thread should be able to accumulate and aggregate

Re: perl/spider/crawling question...

2004-05-27 Thread Mike Jackson
as for spidering trees, stacks are always great fun to set up :) consider: my @stack; # first we seed the stack (we only need one item to start!) while () { chomp; push @stack, $_; } # now that our stack is seeded, do stuff with it! while (@stack) { my $item = pop @stack;

Re: compiling cgi scripts with perlapp

2004-05-22 Thread Mike Jackson
of course it works :) the web server knows nothing about _how_ to run the file - it just detects if it passes all the runnability criteria (.cgi extension etc) and passes it to a pseudo-shell. The script needs only to read the relevant environment variables, and write valid cgi output to its

Re: fork() and wait().

2004-05-20 Thread Mike Jackson
the below is created as an example and hasn't been tested - you will need to fill in some code where I've typed things similar to a_descriptive_function_name_for_what_happens_here(); the perlipc and perlfork manpages have some good examples :) hope it helps #!/usr/bin/perl # perl fork/waitpid

Re: Editor

2004-05-18 Thread Mike Jackson
http://www.freeprogrammingresources.com/perlide.html On Tue, 18 May 2004 17:23:54 -0500, Ronald Estes [EMAIL PROTECTED] wrote: Do you know any good Perl Editor software? ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe:

Re: Retrieving WMI object data via WMI/WBEM ODBC Adapter

2004-05-13 Thread Mike Jackson
you'd probably be best off writing two modules, one for *n?x, one for windows, and load one or the other at compile time in a BEGIN block, depending on the detected OS... I've used Win32::ODBC quite successfully on a number of projects, but have never even heard of the odbc interface to WMI of

Re: Perl script running on windows linux

2004-05-04 Thread Mike Jackson
program to give the script t;, and also requires execute permissions for whichever user will be using the scripts (normally 'nobody' if you're doing cgi with apache), neither of which you need to watch for in windows. -Mike Jackson On Tue, 4 May 2004 16:51:00 +0900, [EMAIL PROTECTED] wrote: Hello

Re: accessing a site with a password/frames...

2004-04-15 Thread Mike Jackson
most sites use cookies to trace logins. you'll need to save any cookies that the site sends, and return them to the server with each request. some sites use a challenge/response authentication which basically involves the site returning a 403 error, and then your agent re-requests, sending the

Re: shifting bits

2004-03-29 Thread Mike Jackson
Ganeshalingam'; 'Mike Jackson' Cc: [EMAIL PROTECTED] Subject: RE: shifting bits This combined with this quote from Anton: I'm trying to avoid people looking at the data without proper access sounds like he is wanting to do some really simplistic encryption of his data that will be stored in a database

Re: shifting bits

2004-03-29 Thread Mike Jackson
yep :) of course, this would make the encoding mechanism very easy to work out - a shift left n bits is the same as multiplying by 2^n - so if you = 2, the result will just be 4 times bigger. if someone with a decent understanding of maths saw this pattern, all they would have to do is work

Re: Win32::Process

2004-02-28 Thread Mike Jackson
bit? -Mike Jackson On Fri, 27 Feb 2004 11:00:24 -0600, Dirk Bremer (NISC) [EMAIL PROTECTED] wrote: I have used Win32::Process in several scripts. what I can't figure out about using it is how to create a minimized window. Looking at the constants used with Win32:Process, I don't have a clue

Re: REGEX help!

2004-01-13 Thread Mike Jackson
I think this is why $Bill said use the syscall rather than the RE - IPs are also legally expressed as the raw 32 bit number in decimal, or as a subset of the dotted quad only including the elements required to dis-ambiguate depending on the subnet mask (with a subnet mask of 255.0.0.0, 127. is a

Re: Using URI

2004-01-09 Thread Mike Jackson
URI::URL only parses the string and holds it as an object in multiple parts that you can change and get the new compiled string at any time. It does not do actual checking and retrieval of the uri. You want HTTP::Request for actual checking I believe. On Fri, 09 Jan 2004 19:16:37 +, [EMAIL

Re: Very Slow Perl with IIS5

2004-01-07 Thread Mike Jackson
sounds like its polling something, creating a race condition. this is especially relevant on non-file filehandles (sockets, named pipes etc) possibly the mysql connection? if it sends a request that takes a bit of time, and then polls for a response, this would slow the computer until the

Re: Win32 PPT Adding Autoshapes

2004-01-07 Thread Mike Jackson
that line will try and find a procedure, variable or property in the package/namespace/pointer $slideobject called (whatever the contents of $p2 are) you probably mean: my $slideobject = $p2-Slides(1); $slideobject is undef until you assign something to it - and undef doesn't export/autoload

Re: Win32 PPT finding max value in range of embedded worksheet

2004-01-07 Thread Mike Jackson
you'd be better off searching the mskb or msdn for this - perl merely autoloads all the OLE functions it finds available - it doesn't have them remembered anywhere. you may find its something like ...-exec('Max(B3:O3)') or call or something odd like that.. remember that perl is case sensitive!