Re: Understanding perlop

2000-05-30 Thread Ian D. Stewart
"Jimmy S. Lim" wrote: > > hi, > i came across this statement while reading Perlop. I don't understand how %s > is substituted w/ "s" or w/o "s" depending on the no. of dogs. %s is a hash. Well, not in this instance. Within a printf() statement %d and %s (and several others, perldoc -f sprintf f

Re: Phython?

2000-05-30 Thread Ian D. Stewart
Mihail Belanov wrote: > In fact, Python is good language but rarely used yet. Really? It seems quite prevalant in the Linux community. (or maybe I'm just imagine things...) Ian -- 99 little bugs in the code, 99 bugs in the code. Fix one bug, compile again, 100 little bugs in the code. 100

Re: Data access

2000-05-30 Thread Ian D. Stewart
Garrick Staples wrote: > > 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 Additionally, I know of at least one copy of the SQL-92

Re: code check in utils?

2000-05-26 Thread Ian D. Stewart
Anthony George wrote: > > Anyone have any suggestions for code check in/check out utils? Looking > for something for perl only, that will keep track of changes to code, > auto-increment a var($appVersion) within the code if it differs from the > last known base, keep track of associated files...

Re: File time and date questions

2000-05-26 Thread Ian D. Stewart
Eric Stephenson wrote: > > Hi, > > I am using the following to try and get the file date and time but for some reason >am not getting what I am expecting. > > Here is the snippet of code: > > $file = "install.log"; > $time = (stat("$file"))[10]; > $ltime = local($time); > > print "$ltime\n";

Re: Call a DLL in perl

2000-05-26 Thread Ian D. Stewart
"Joseph P. Discenza" wrote: > > Garrick Staples wrote, on Thursday, May 25, 2000 17:19 > : 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 c

Re: Error in Installing Modules...

2000-05-25 Thread Ian D. Stewart
Rick Bolen wrote: > > >Subject: Re: Error in Installing Modules > >From: "Robert Hanson" <[EMAIL PROTECTED]> > >Date: Wed, 24 May 2000 15:08:30 -0400 > > > >Yeah, there seems to be a problem... but there is a work around. > > It appears that ActiveState has changed the directory structure for th

Re: anybody understand binmode?

2000-05-25 Thread Ian D. Stewart
khizar wrote: > > hi guys > i am trying to read a file > before this i use the foll code > if (-B $filepath) {binmode FILEHANDLE;} > > while () > { > rest of stuff; > } > this code works fine for all files EXCEPT PDF files where it fails to > detect the PDF file as binary file and hence bin

Re: Question on referencing

2000-05-24 Thread Ian D. Stewart
Wagner-David wrote: > > I have the following snippet of code: > >my $auditt = backtick("Type $qvmin"); >foreach ( @$auditt ) { > printf "$_\n"; > } > This will print out what I expect. > > Now I want to do two actions and then print it out and I

Re: cannot locate Makemaker

2000-05-23 Thread Ian D. Stewart
[EMAIL PROTECTED] wrote: > > Hi. I am a unix-based programmer who is new to Activeperl and ppm. I am > writing a new module and trying to prepare it for installation. But when i > try to nmake Makefile, I get an error that Extutils:Makemaker cannot be > located. I did a "search" in ppm and Extuti

Re: How to modify the Screen Saver setting with PERL?

2000-05-23 Thread Ian D. Stewart
"Hogue, Jon" wrote: > > I bet the screen saver and background images are simply registry values. If > I were trying to do a similar task, I would search Microsoft's web page to > find out what registry setting is used to set these things, and then get a > registry module from www.cpan.org to set

Re: How to configure for Borlands compiler and make

2000-05-23 Thread Ian D. Stewart
Mike Blazer wrote: > > Ian D. Stewart wrote: > > > > Mike Blazer wrote: > > > > > > Bo Holmstedt wrote: > > > > > > > > Hello, > > > > > > > > I would like to build extensions with use of Borlands &g

Re: How to configure for Borlands compiler and make

2000-05-23 Thread Ian D. Stewart
Mike Blazer wrote: > > Bo Holmstedt wrote: > > > > Hello, > > > > I would like to build extensions with use of Borlands > > Development Environment but have problems to make > > things work properly. > > > > The package I have downloaded from ActiveState for Windows > > presume that I use nmake a

Re: Win32::OLE - Error message

2000-05-19 Thread Ian D. Stewart
Axel Tietje wrote: > > Hi, > > is there anyone out there who knows more about > Win32::OLE than I do? I can think of at least one person who knows more about Win32::OLE than all of us combined. That is its author, Jan Dubois. > I have some problems with > the objects, methods and properties t

Re: An attempt to clear up Active Scripting Misconceptions

2000-05-19 Thread Ian D. Stewart
[EMAIL PROTECTED] wrote: > > Ian. D. Stewart wrote: > > > From "ASP in a Nutshell", p. 27: > >> > The Application object is initialized by IIS the moment the first client > requests > >> > any file from within the given virtual director

Re: An attempt to clear up Active Scripting Misconceptions

2000-05-19 Thread Ian D. Stewart
[EMAIL PROTECTED] wrote: > > Justin Rogers said: > >> Everyone is saying that ASP caches pages in memory, but not the compiled > >> pages. But I'd like to go straight to the root of the problem and that > >> lies in some C/C++ code. So here goes: > > >> An Active Scripting Engine has to suppor

Re: Perl speed vs ASP speed

2000-05-18 Thread Ian D. Stewart
[EMAIL PROTECTED] wrote: > > >> Now will someone answer the original question for this guy? > >> Assume this consultant only knows about VBScript and has only > >> used VBScript with ASP. That is the default mind-set of a drone > >> of the Microsoft collective. > >> Now please compare IIS/ASP/VBS

Re: A good editor - ntemacs

2000-05-17 Thread Ian D. Stewart
Andrew Bastien wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > vim??? Real programmers don't need any of that fancy screen-oriented > stuff; real programmers use ed! Why mess around with the middle-man? Just set the bits manually and be done with it... ;) Ian -- 99 little b

Re: FW: Verify file exists

2000-05-17 Thread Ian D. Stewart
Douglas Wilson wrote: > > On 05/16/00, "Roee Rubin <[EMAIL PROTECTED]>" wrote: > > $val=~s|\\|\/|gi; > > if (-e "$val") { > > There's no need for quotes around "$val", and > no need to escape the forward slash. I don't > think there's any need to substitute backslashes > for forward

Re: File Compare Module?

2000-05-11 Thread Ian D. Stewart
Ned Konz wrote: > > "Ian D. Stewart" wrote: > > > > Frank Merrow wrote: > > > > > > I am told there is a File::Compare module that will compare two files. > > > > > > A ppm search didn't show anything useful under "file&

Re: File Compare Module?

2000-05-11 Thread Ian D. Stewart
Frank Merrow wrote: > > I am told there is a File::Compare module that will compare two files. > > A ppm search didn't show anything useful under "file" or "compare". > > Before I system("cmp $f1 $f2), does anyone know where to find this beast? Try looking for Algorithm::Diff, or you can get t

Re: Controlling Windows selection Boxes

2000-05-11 Thread Ian D. Stewart
> [EMAIL PROTECTED] wrote: > > Someone sure took a long, hard look at the MS Scripting Host and found > out what it's capable of...! The Scripting Host was the main (if not > the sole) reason that the "ILOVEYOU" virus was able to massively > infect the MS community last week. As you rightly say:

Re: Excel and Perl (not exactly the usual questions)

2000-05-09 Thread Ian D. Stewart
Frank Merrow wrote: > > I'm at a lost as to how to turn a huge IDL file into a working Perl > program. At this point, the search and discovery process is just VERY VERY > VERY painful. You may want to check with the usual suspects, and see if there is an IDL compiler available for Perl. If so,

Re: creating wed mail account

2000-05-09 Thread Ian D. Stewart
[EMAIL PROTECTED] wrote: > > > From: manhui [mailto:[EMAIL PROTECTED]] > > Hi, all > > > > I would like to creat a wed mail acount under Linux RedRad6.2. > "Wed" mail account? Web Mail account, perhaps? > > > Is there any tools or examples for me, any suggestion for it? > Yes. Re

Re: creating wed mail account

2000-05-09 Thread Ian D. Stewart
manhui wrote: > > Hi, all > > I would like to creat a wed mail acount under Linux RedRad6.2. > Is there any tools or examples for me, any suggestion for it? >From the command-line: $ su # adduser newuser # chpasswd newuser >From X: Run: gnome-linuxconf Drill down to the User Maintenance sec

Re: Importing subroutines from one package to another

2000-05-05 Thread Ian D. Stewart
Jan Dubois wrote: > > On Fri, 05 May 2000 13:40:03 -0400, "Ian D. Stewart" <[EMAIL PROTECTED]> > wrote: > > >Here's the beginning of package Java::Class: > > > >> package Java::Class; > >> > >> use Java::ClassFile qw(:v

Re: Importing subroutines from one package to another

2000-05-05 Thread Ian D. Stewart
Jan Dubois wrote: > > On Fri, 05 May 2000 11:58:45 -0400, "Ian D. Stewart" <[EMAIL PROTECTED]> > wrote: > > >if I add a 'use Java::ClassFile qw(:visibility)' to a regular script, I > >am able to access accPublic, accProtected and accPrivate w

Importing subroutines from one package to another

2000-05-05 Thread Ian D. Stewart
Howdy folks, I'm struggling with Exporter, and am hoping someone can shed some light... I have the a package that starts like so: package Java::ClassFile; require Exporter; @ISA = qw(Exporter); @EXPORT_OK = qw(accPublic accProtected accPrivate accStatic accFinal accSynchronized

Re: Is it possible to have two versions on PC ?

2000-05-02 Thread Ian D. Stewart
John Green wrote: > > Ladislav, > > It is easily done, just install both. The problem is that > you may have only one file association per suffix. > > i.e. You can't have .pl map to Perl 5.005_03 and 5.6 > > One way around that would be to use different suffixes, > maybe: > > .pl - For 5.005

Re: Splitting out a filename

2000-05-01 Thread Ian D. Stewart
[EMAIL PROTECTED] wrote: > > ok, let's say you have a file where each line looks like this: > > --a-- 430 Fri Mar 19 18:32:47 1999 D:\Program Files\Common > Files\Adobe\Web\AwePrefs.txt > > and you want to get the filename (and every other field) out of it, the obvious > thing to split on

Re: Site Search in Perl

2000-05-01 Thread Ian D. Stewart
Robert White wrote: > > From: "Ali BinAbdat" <[EMAIL PROTECTED]> > > Could some body help me in getting a perl program that search my web > > site (.html,.txt, ,,etc) and display the documents or pages that contain > > the required word/s. > > I tried some free perl programs but they did not supp

Re: Perl extensions - XS and DLL linkage

2000-05-01 Thread Ian D. Stewart
Kenneth Bandes wrote: > Granted, if a DLL really is part of the operating system and ought > to be shared, it should go into System32. But then, should parts > of the operating system really be distributed with each application > you install? This is a weird custom that only occurs with Windows

Re: HELP... my PPM is not working

2000-04-28 Thread Ian D. Stewart
Charles Maier wrote: > > My ppm has stopped working on my Win98SE Pc. I de-installed perl (5.6.0) and > reinstalled it.. still ppm does not function. I just downloaded a ppd module > off of activestate.. unzipped it and typed (at DOS prompt): > > ppm install mailtools.ppd > > it comes up with a

Re: Perl extensions - XS and DLL linkage

2000-04-28 Thread Ian D. Stewart
Jan Dubois wrote: > > On Fri, 28 Apr 2000 16:26:03 -0400, "Ian D. Stewart" <[EMAIL PROTECTED]> > wrote: > > >Doesn't Windows have something like LDLIBRARY_PATH/ld.so.conf? > > Not that I know. I know OS/2 uses a DLLPATH but Win32 just reuses the &g

Re: Perl extensions - XS and DLL linkage

2000-04-28 Thread Ian D. Stewart
Jan Dubois wrote: > > On Fri, 28 Apr 2000 11:06:17 +0100, Ian Dash <[EMAIL PROTECTED]> wrote: > > > My problem lies with the search path used to find the DLL - after > > playing around with making the ppd and installing it I've found out > > that it only looks in the current executing dire

Re: efficiency of perl on win32

2000-04-28 Thread Ian D. Stewart
Eric Smith wrote: > > Hi > > I mailed recently on this subject but received no response :( so lets try > again *shrugs*. > > I develop in perl for win32 end-users. We have chosen to deploy the perl > as cgi scripts so user has a browser interface on the local machine > (obviously this is scala

Re: Downloading and Saving HTML Pages

2000-04-28 Thread Ian D. Stewart
Philip Newton wrote: > > jimi malcolm wrote: > > if someone could point me in the right direction, that would > > be enough. > > perldoc -q "fetch an HTML file" > > It's in perlfaq9. Or, for a non-perl solution, wget. You can grab the source code from ftp://ftp.gnu.org/gnu/wget. Not sure if

Re: perldoc PAGER

2000-04-27 Thread Ian D. Stewart
Tim Hammerquist wrote: > > "Ian D. Stewart" wrote: > > > > "Greenier, Allan" wrote: > > > > > > Greetings, > > > > > > Can someone give me sample code to change perldocs PAGER? > > > > set PAGER="C

Re: perl-5.6.0+gcc-2.95.2-msvcrt+Win32::API -- how to port _asm block

2000-04-27 Thread Ian D. Stewart
Joseph Wayne Norton wrote: > > Has anyone tried or know how to build the Win32::API module using > gcc-2.95.2-msvcrt and perl-5.6.0? The compilation is failing at the _asm > block in the xs module. What is the error message(s) you are receiving? If it's complaining about "reference to undefine

Re: perldoc PAGER

2000-04-26 Thread Ian D. Stewart
"Greenier, Allan" wrote: > > Greetings, > > Can someone give me sample code to change perldocs PAGER? set PAGER="C:\WINNT\System32\notepad.exe" perldoc will now display POD documentation in notepad. HTH, Ian -- 99 little bugs in the code, 99 bugs in the code. Fix one bug, compile again, 1