Re: modify @INC

2006-04-16 Thread Hon Shi
Isn't that 'use lib' as in use lib "/my/own/lib/directory" ? --- Adam Peterson <[EMAIL PROTECTED]> wrote: > hello, > > how do i change the location that perl is looking for modules at runtime? > another application has installed its own instance of perl and my script is > looking in the

ot - cgi & perl & processes

2006-04-06 Thread Hon Shi
Yah, ot I know, but who else writes CGIs but perl guys? :-) "However, the CGI model has an important drawback: a web server that wants to use a CGI program must call a new copy in responce to every incoming web request." With respect to perl, is that still true?

eval and my

2006-04-01 Thread Hon Shi
Here are two files that demonstrate the effect 'my' has on eval: "x.pl" and "HPLC.pm" "x.pl" calls two subs in "HPLC.pm". When the array @note is 'my'd, the sayNotes() eval creates no note array output. Without my, or with 'our' or 'local', it works just fine What's going on? Thanks #--

Re: FW: perl / javascript and MD5

2006-03-22 Thread Hon Shi
That was it; md5_hex ... works great. --- Aaron Hawryluk <[EMAIL PROTECTED]> wrote: > Hm, my replay got sent to the bounces address... Reposting to list. > > -Original Message- > From: Aaron Hawryluk [mailto:[EMAIL PROTECTED] > Sent: March 22, 2006 1:16 PM > T

Re: mimic javascript encryption with Javascript::MD5

2006-03-21 Thread Hon Shi
arter Thompson <[EMAIL PROTECTED]> wrote: > > Take a look at the Digest::MD5 module on CPAN. > http://search.cpan.org/~gaas/Digest-MD5-2.36/MD5.pm > > I use it quite a bit in various automation projects I've done. You > may be able to adapt > it to your needs. &g

mimic javascript encryption with Javascript::MD5

2006-03-21 Thread Hon Shi
Not trying to do anything nefarious here, just tring to automate some testing. Anyways. I've been using perl's LWP to 'screenscap' and collect data. We ran into a site that uses javascript to hide the user name and login. The form has ist's submit mapped as and the javascript function

lwp, javascript - forget it.... right?

2006-03-20 Thread Hon Shi
Been all over news, just want to verify with the pros here. lwp and javascript don't play. I have a login page uses a javascript function to encrypt the login. There's nothing I can do. I'm dead .. right? __ Do You Yahoo!? Tired of spam? Yahoo! Ma

pipes, IO::Select and blocking

2006-03-20 Thread Hon Shi
New to pipes - got one working - but now want to set it up so the forked process won't block. I thought I'd try and use IO::Selects's ->can_read(1) method. I've tried it many different ways. What am I doing wrong? Here is my simple script. use IO::Select; my $s = IO::Select->new(); pipe READ

how to communicate with a forked process

2006-03-13 Thread Hon Shi
I have never done this and just need help getting off the 'dime'. I have a monitor program that I tried to fork from TK - doesn't work... won't work. So, I thought, can I start a Tk window from the monitor and collect the input that way? Forget Tk for now. How do I fork a process and have that

tk .. fork ... crump

2006-03-09 Thread Hon Shi
Tk 804.27.0.4: up to date. (from ppm 'upgrade Tk') v5.8.7 built for MSWin32-x86-multi-thread Binary build 815 [211909] I having having a fork problem with Tk code. I understand there is a patch to fix it. Looks like it was put together for sh to run, which I don't have. So before I spend hours

http mods, working with outlook web interface

2005-12-19 Thread Hon Shi
Has anyone used the http mods to interact with the outlook web interface? Just a link to a few examples would be nice. Was it stright forward? (have to read mail with given subject lines and detach files) Thanks __ Do You Yahoo!? Tired of spam?

ole, excel, read the error codes

2005-12-18 Thread Hon Shi
Using Win32::OLE with Excel. This has something to do with sheet protection. It works after a manual unprotect (the program version works sometimes, sometimes not) $wb->Worksheets("Sheet1")->UnProtect("admin"); But the real question is, how do I chase this error message down? It doesn't mean a

sequnce rules to passing subroutine parameters?

2005-12-12 Thread Hon Shi
fail: subA($wookbook->Worksheets("Sheet1"), \%arrayA, \2arrayB $workbook->Worksheets("Sheet2")); works fine: subA($wookbook->Worksheets("Sheet1"), $workbook->Worksheets("Sheet2"),\%arrayA, \2arrayB); When I try to pass the second sheet into the subroutine in any position but as the seco

#2 sequnce rules to passing subroutine parameters?

2005-12-12 Thread Hon Shi
typos, sorry fail: subA($wookbook->Worksheets("Sheet1"), \%arrayA, [EMAIL PROTECTED], $workbook->Worksheets("Sheet2")); works fine: subA($wookbook->Worksheets("Sheet1"), $workbook->Worksheets("Sheet2"),\%arrayA, [EMAIL PROTECTED]); When I try to pass the second sheet into the subroutin

ole, script just dies

2005-12-08 Thread Hon Shi
Using Win32::OLE with Excel If the script has a problem with the COM object, it just dies instead of setting the error and allowing a test. This happens everytime a value is accessed on an undefined Range obj like, $sheet->Range("A1")->{'Value'} = 44 The work around is to just point to the R

ole help - 101

2005-09-21 Thread Hon Shi
Need a little help using a function, Find. How? Here's what I have so far. How do I collect and test it? sheets: foreach my $ws (in $MyWorkbook->Sheets) { $ws->Find('What:=CL247', 'After:=ActiveCell', 'LookIn:=xlFormulas', 'LookAt:=xlPart', 'SearchOrder:=xlByRows', 'Sear

xcel, run a macro?

2005-09-09 Thread Hon Shi
I've got the target sheet open and happy. Is there anyway to fire off a macro from perl?.. given: The macro (in "vb") is 1. in another workbook 2. in the present workbook. Thanks __ Click here to donate to the

install perl, usb flash drive

2005-03-14 Thread Hon Shi
I need my Perl! Is there anything I need to know about a perl installation to a portable usb flash drive? On each machine where I use this I plan on simply updating the path to point to perl/bin. The drive letter will change from box to box. Is that it? Thanks __

WINS - "reset"

2005-02-20 Thread Hon Shi
Anyone have tools/script to "reset" a group of WINS servers. I'm not going to do this again by hand! __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 __

extract jpg info

2004-12-16 Thread Hon Shi
jpeg/jpg files contain various bits of info, mfgr, shutter, color ... Is there a perl mod out there that can extract this? Thanks __ Do you Yahoo!? All your favorites on one personal page – Try My Yahoo! http://my.yahoo.com _

logged in users

2004-12-10 Thread Hon Shi
I'm attempting to find logged in users in an ad env (2k server). Is Win32::NetAdmin the way to go? Thanks __ Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. http://celebrity.mail.yahoo.com __

adsi date type

2004-11-22 Thread Hon Shi
I've been working with perl/adsi and have not needed to look at anything but string data. Can someone give me a short example to read, say, the LastLogin time in a user object? I was just dumping some strings in a user object and this doesn't work for nonstring data. I suppose this is a two st

sockets 101

2004-11-11 Thread Hon Shi
We have a few monitors that need to connect to a central status controller (lights buzzers mail). The monitors have left status files up to now, but this is mess. I'm thinking that sockets might be a fix. Each monitor connects to the status controller and sends messages. I've done Java programs

Time::ParseDate

2004-11-10 Thread Hon Shi
Time::ParseDate I lost it! I thought it was in the DdP repository. Where did it go? I just installed this 2 weeks(?) ago with ppm. Now a search is showing up nothing. Thanks [1] Roth Consulting [2] ActiveState PPM2 Repository [3] ActiveState Package Repository [4] University of Winnipeg [5] DdP

string to time

2004-11-03 Thread Hon Shi
given a date string something like 11/03/2004 09:30:27 Is there a perl mod that will turn this into perl's time() in seconds from day zero? Thanks __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com _

serial port, very lost,

2004-10-29 Thread Hon Shi
We are trying to flip the bits on a 8 bit io card. It has a serial interface. The demo program sent along with it works fine by the needle heads will not send the source. Not one example! I love examples. This is the last board we purchase from them. Anyways. The spec says you write a as

tar.tar

2004-10-29 Thread Hon Shi
10/29/2004 08:16 AM 8,660 Win32-Service-0.05-PPM58.tar.tar from http://www.bribes.org/perl/ppm/ Picked up this file and trying to install but none of my "zip" programs can unpack this. This is usually no problem. What tool is required to suck the stuff out? __

serial ports

2004-10-29 Thread Hon Shi
Anyone actually communicated with xp/2k serial ports? I see posts that treat the port as a file "COM1" and some use a mod named Win32::SerialPort, which ppm can't find. How did you do it? Thanks __ Do you Yahoo!? Read only the mail you want - Ya

Re: perl from net drive

2004-10-21 Thread Hon Shi
7;ve done more than once. Is there an faq somewhere on networked perl? --- Sisyphus <[EMAIL PROTECTED]> wrote: > Hon Shi wrote: > > I want to run perl from a network drive. > > The drive letter will be unknown. > > > > I know that you have to add perl&#x

Re: How to get remote logical drive letters

2004-10-20 Thread Hon Shi
wmi enumerate Win32_LogicalDisk on the machine of interest. --- Ben Conrad <[EMAIL PROTECTED]> wrote: > Folks, > > Is there a way to list the logical fixed disk drive letters on a -remote- > machine? Requirements would be that all you have for script input is the > machine name, the module woul

perl from net drive

2004-10-20 Thread Hon Shi
I want to run perl from a network drive. The drive letter will be unknown. I know that you have to add perl's bin to the path. What are the other couple of things you must do? I plan to batch these configuration details. (I have depth copied my local perl install to the network drive. xcopy c:\p

RE: Unlink and UNC paths

2004-10-14 Thread Hon Shi
Might try cleaning it up with File::Spec->canonpath($f); Saves me all the time from user input. --- "Su, Yu (Eugene)" <[EMAIL PROTECTED]> wrote: > I have the same problem. I can unlink files using a mapped letter such as > "d:\\$files", but I can not unlink "server\\share\\$files" where "d"

pass an AD object

2004-10-13 Thread Hon Shi
$ldap = Win32::OLE->GetObject( "$spec"); subR(\$ldap); #-- sub subR { my ($ad) = @_; $className = $$ad->{'Class'}; } Doesn't work after I pass the object. How do you pass and use this object? Thanks - been using this list quite-a-bit. I should settle down soon.

adsi, which "interface"

2004-10-13 Thread Hon Shi
wooh Ok, I use the ADSI provider LDAP which can return any number of interfaces: IADs, IADsContainer, IADsSchema Question is, how do I know which ones I've got? Is the following correct? 'ADSI Objects of LDAP' list a dozen or so ADSI objects. When I use OLE->GetObject, I obtain one of the

RE: ole browser broke, xp sp2? - another fix

2004-09-13 Thread Hon Shi
To turn off mother-knows-best, xp sp2 ie In both HHKLM and HKCU set dword to 0 (spelling?) software/mirosoft/internet explorer main/featurecontrol/frature_localmachine_lockdown iexplore.exe = 0 ___ Do you Yahoo!? Shop for Back-to-School deals on Yah

ole browser broke, xp sp2?

2004-09-13 Thread Hon Shi
My perl doc OLE browser broke. I get this (see below) in the bottom pane. Help! Thanks (maybe a new corp gpo setting?) function rollon(frame) { var event = window.parent.frames(frame).event; var element = event.srcElement; if (element.tagName != "TD") { element = elemen

serial ports - w2k & xp

2004-07-22 Thread Hon Shi
Has anyone done any serial port programming? I've heard of one module Win32::SerialPort - but does it need a driver? Has anyone experience with it. ppm activeware has nothing. I have a small io device that accepts command strings on com1 or com2. w2k perl 5.8 Thanks ___

tk - mainloop - a print to stdout method?

2004-05-13 Thread Hon Shi
I'm trying to view values in a AD browser that I found. I don't know tk but I assume MainLoop is it's processing 'loop'. How can I place print statements in his code to print to stdout? Does tk have a print method that prints to it? My prints don't do a things. Printing works in 'new' within A

http - https - OpenSSL and Crypt::SSLeay

2004-05-10 Thread Hon Shi
Hit a wall with lwp with https. Has any w32 user with active got this going? ppm and active site gets no hits. Do I have to 'build' this. The documentation on cpan is unixy. Any help appreciated. Thanks win32 on XP/w2k perl 5.8.0 b806 ___

ole com dcom com+ what?

2004-04-27 Thread Hon Shi
I'm using the perl ole module to connect with some lotus/domino objects. Some of these are available only for com objects, java and other things. Mostly the class's available to list always lists ole whenever com is included. A particular class I was interested in said it was for use only with

system

2004-03-09 Thread Hon Shi
I've never seen this. I have a 2k box with 5.8. This simple one liner will not run. Any ideas (besides an OS reinstall). Everything else runs just fine. Only system fails. (All the other boxes run it) system("dir /s"); __ Do you Yahoo!? Yahoo! Search - Find w

arp monitor?

2004-02-03 Thread Hon Shi
I am collecting arp info, mac <-> ip. Is this true? You just listen? So you script something like system(arp > afile); parse afile for new mac addresses stick them in a hash with their ip go back do it again Right? Is there a module out there alread. Planned on calling the native arp. Tha

uninstall

2004-01-26 Thread Hon Shi
Anyone ever used perl to fire off a program uninstall? __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To u

network inventory, how do YOU do it?

2004-01-13 Thread Hon Shi
How does one go out and "inventory" his network. In other words, given a hot IP (it pings) how can you discover just exactly what is there? Don't write anything for me but just generally describe the method. It's generally a W2K world, but we have net phones, unix boxes, printers and Thank

vb perl ad translation help

2003-12-30 Thread Hon Shi
I have the WinNT ADSI object. Here is the VB line to set the object filter to computers only: objAD.Filter = Array("Computer") What's the perl translation for the above? Thanks. __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.