Re: have idea to redirect STDOUT... anyone got anything better?

2000-05-31 Thread Garrick Staples
You can't eval a filename, it just defines a new code block and isolates code errors. You can do something like: open PROGGIE, $script or die $!; { local($/); #locally undef $/ within {}'s eval ; } warn $@ if $@; close PROGGIE; But that doesn't execute a seperate process from which you ca

Re: nmake fails with h2xs tutorial to link to user-defined C library

2000-05-30 Thread Garrick Staples
Just a side note, not relating to your problem is that the tutorial isn't really clear on the fact that parts of Makefile.PL are written directly to Makefile. Which means that white space is tricky here: [EMAIL PROTECTED] wrote: > sub MY::postamble { > ' > $(MYEXTLIB): mylib/Makefile

Re: Installing DBI for use with ACTIVE STATE

2000-05-30 Thread Garrick Staples
> > Behalf Of [EMAIL PROTECTED] > > > > Hi everyone. > > > > > > I am installing DBI-1_13_tar to use on my Windows98 OS. Simply all I have > > > > is a zip file called: > > > > DBI-1_13_tar I think the missing piece here is that it is a 'tar' file. Tar files are archives containing multiple file

Re: Data access

2000-05-26 Thread Garrick Staples
I've also found the mysql docs to be great at teaching SQL. select is at http://web.mysql.com/Manual_chapter/manual_Reference.html#SELECT and the TOC is at http://web.mysql.com/Manual_chapter/manual_toc.htm [EMAIL PROTECTED] wrote: > Perry: > For any database programming it is very important fo

Re: Call a DLL in perl

2000-05-26 Thread Garrick Staples
While I was here, I figured I'd make myself useful and answer some questions ;) Maybe I should just be quiet in these unfamiliar environs. "Joseph P. Discenza" wrote: > Garrick Staples wrote, on Thursday, May 25, 2000 17:19 > : You need to create what is known as an extens

Re: Call a DLL in perl

2000-05-25 Thread Garrick Staples
You need to create what is known as an extension module. Look at the 'perlxs' and 'perlxstut' man pages. "Nolen, Mike" wrote: > > > Where can I find some documentation or an example of how to call a DLL > function in Perl? > The DLL was built using VB6.0. > > TIA, > Mike Nolen --- You are cur

Re: module version

2000-05-25 Thread Garrick Staples
perl -MModName -e 'print $ModName::VERSION' --works for well behaved modules Börkur Guðjónsson wrote: > Is there some way I can query a module for it's version? > Borkur Gudjonsson --- You are currently subscribed to perl-win32-users as: [archive@jab.org] To unsubscribe, forward this messag

Re: Getting a process ID

2000-05-25 Thread Garrick Staples
Side note... Since modules are generally 'use'd, you may want to kinda-sorta simulate a use with a BEGIN{} block: BEGIN { $^O eq 'MSWin32' ? do { require Win32::IProc } : do { require Proc::ProcessTable } } You really should create your own cross-platform package that

Re: Directory Access Question

2000-05-25 Thread Garrick Staples
Margaret wrote: > This is probably quite obvious - (but i am a newbie) how do i stop/hide the > . and .. from appearing on my list as a hyperlink? > > Here's the code snippet > > opendir(WD,"./scripts/cgi-bin/NIS_REPORTS") || > die "Cannot opendir . (serious dainbramage): $!"; > foreach (sort rea

Re: Question on referencing

2000-05-24 Thread Garrick Staples
Wagner-David wrote: >my $sauditt = backtick("Type $qvmin"); >$auditt = $sauditt; >$sauditt = backtick("Type $qvmdata"); >$auditt .= $sauditt; > >foreach ( @$auditt ) { > printf "$_\n"; > } $auditt and $sauditt are array references, so don

Re: Tree-like data structures in Perl

2000-05-23 Thread Garrick Staples
You just want each page to have the links for the files/directories in that immediate directory? np... ## Warning, written on Unix, not tested in windows # This creates an HTML page in each directory with links for that directory, like a # directory listing in a web browser. $startingdir='/home

Re: dates

2000-05-23 Thread Garrick Staples
"Joseph P. Discenza" wrote: > Rhonald Lua wrote, on Tuesday, May 23, 2000 04:24 > : How does one use '$' to get the pattern at the end of string? > : For example, I want to remove '&' at the end of 'hello&'. PERL docs > : indicate I could write: > : s/$(\&)//; > : but doesn't seem to work. >

requesting Term::ReadLine in ppm

2000-05-22 Thread Garrick Staples
Anyone know if Term::ReadLine will supported by ppm anytime soon? I'd love to use all my programs from my Unix boxes that would work if only I had Term::ReadLine installed. TIA --- You are currently subscribed to perl-win32-users as: [archive@jab.org] To unsubscribe, forward this message to