Re: What do you use to access AS documentation?

2001-01-02 Thread $Bill Luebkert
Carl Jolley wrote: > > Well its not an external search engine but it is free and already > installed > > I use Windows Explorer. The Tools/Find menu item will search a file (or > a directory of files, e.g. the perl HTML files) for specific strings. That's a pretty decrepit tool - especiall

Re: Regex Question

2001-01-02 Thread Joel Ricker
>I would like a regex to replace leading zeroes in a number. For example, a >ten-digit number string has 5 leading (leftmost) zeroes. I would like to >replace each leading zero with a space, i.e. 5 leading zeroes with 5 leading >spaces. I tried s/^0+/ /g but it replaced all leading zeroes with on

Re: Regex Question

2001-01-02 Thread Joel Ricker
>I would like a regex to replace leading zeroes in a number. For example, a >ten-digit number string has 5 leading (leftmost) zeroes. I would like to >replace each leading zero with a space, i.e. 5 leading zeroes with 5 leading >spaces. I tried s/^0+/ /g but it replaced all leading zeroes with on

Regex Question

2001-01-02 Thread Dirk Bremer
I would like a regex to replace leading zeroes in a number. For example, a ten-digit number string has 5 leading (leftmost) zeroes. I would like to replace each leading zero with a space, i.e. 5 leading zeroes with 5 leading spaces. I tried s/^0+/ /g but it replaced all leading zeroes with only on

RE: Prototyping problem?

2001-01-02 Thread Andrew Hamm
-Original Message- From: Joel Ricker [mailto:[EMAIL PROTECTED]] I'm runing into a prototype problem. I've prototyped a function to take no arguments like this: sub Buildmap() { } and calling it just like this: Buildmap; And I get the warning: Prototype mismatch: sub Sfb::buildmap v

Re: masks earlier declaration in same scope

2001-01-02 Thread Carl Jolley
On Tue, 2 Jan 2001, Alloun, Jonathan wrote: > > Hello, > > I have a parameter > > my $name0 = "c:/test"; > > $name0 is used for opening a file throughout my program. > > I have used it more than once and therefore it says that $name0 masks > earlier declaration in same scope. > > I have tri

Re: What do you use to access AS documentation?

2001-01-02 Thread Carl Jolley
On Tue, 2 Jan 2001, Will W wrote: > Alexander F. Gutfeldt <[EMAIL PROTECTED]> has pointed out to me that the html >documentation ActiveState provides with Perl could be a lot more useful if I used an >external search engine on it-- something that would do a global search of the files >for give

Re: Passing references to subroutines in other packages

2001-01-02 Thread Carl Jolley
On Thu, 28 Dec 2000, Ted Mao wrote: > I have a problem which seems simple, but I haven't found a solution to it > yet. > > Let's say I have two packages, A and B. In a subroutine of package A, I'm > trying to return a reference to a subroutine in package B. So in package A > I have: > > my $r

Re: Repost: trying to write out an array in tab delimination

2001-01-02 Thread Carl Jolley
On Sat, 30 Dec 2000, Bullock, Howard A. wrote: > Sorry. I forgot to say that the input file was comma delimited data: > > a,b,c,d,e > f,g,h,i,j > > Change the split or change to an Array for input to the join. > > Does this satisfy your need? If your input is large, you may what to process

RE: HELP: Net::Daemon

2001-01-02 Thread Christopher Hahn
Hello, Any progress here? I am curious because I have seen this error before, produced from a different situation. I agree that it represents some sort of incompatability between versionsbut I am not sure whywe need to identify this method "tid". Good Luck in any case, Christopher -

RE: Opening Directory without knowing name

2001-01-02 Thread Ed Moon
Checkout File::Find -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of byron wise Sent: Tuesday, January 02, 2001 2:27 PM To: [EMAIL PROTECTED] Subject: Opening Directory without knowing name I have a script that creates directories on the fly if they don'

Re: Opening Directory without knowing name

2001-01-02 Thread Chuck . Hirstius
>I have a script that creates directories on the fly if they don't exist. >What I now need to do is open the directory and delete the files inside if >they are older than 30 days. >Here is the directory where they are created: > >/I/Know/this/much/ > >Once I open the much directory, there are

Re: masks earlier declaration in same scope

2001-01-02 Thread $Bill Luebkert
> "Alloun, Jonathan" wrote: > > Yes, I have fixed that problem but I am calling a set of different modules from >within my Perl program. I am generating a log file and therefore have a filehandle >that I opened initially. > > How do I make the file handle that I opened once in the Perl program

Opening Directory without knowing name

2001-01-02 Thread byron wise
I have a script that creates directories on the fly if they don't exist. What I now need to do is open the directory and delete the files inside if they are older than 30 days. Here is the directory where they are created: /I/Know/this/much/ Once I open the much directory, there are many subdi

RE: masks earlier declaration in same scope

2001-01-02 Thread Alloun, Jonathan
Title: RE: masks earlier declaration in same scope Yes, I have fixed that problem but I am calling a set of different modules from within my Perl program. I am generating a log file and therefore have a filehandle that I opened initially. How do I make the file handle that I opened o

RE: masks earlier declaration in same scope

2001-01-02 Thread Cornish, Merrill
Jonathan, The my declaration for a variable such as should appear only once in a given scope. After you have declared it, you can then assign to that declared variable as many times as you need. my $name0 = "c:/test"; . . . $name0 = "c:/file2"; . . . $name0 = "c:/outp

RE: masks earlier declaration in same scope

2001-01-02 Thread Chuck . Hirstius
Jonathon, You should not need to close a file before calling a module. I'm not entirely sure what you mean by that though. If you mean doing a "use" as in: use CGI; use strict; etc. then you should just place all of those at the top of your program, and it should be fine.

RE: masks earlier declaration in same scope

2001-01-02 Thread Alloun, Jonathan
Title: RE: masks earlier declaration in same scope Chuck, Thanks for your help but I probably did not make it clear that I chose to use the same name since I am appending to the same file. Why I am having to open it many times, because I am calling different modules within the

Re: masks earlier declaration in same scope

2001-01-02 Thread Chuck . Hirstius
>Hello, >I have a parameter >my $name0 = "c:/test"; >$name0 is used for opening a file throughout my program. >I have used it more than once and therefore it says that $name0 masks earlier declaration in same scope. >I have tried to undef $name0 but it still get this error. >The program will r

Re: masks earlier declaration in same scope

2001-01-02 Thread Alloun, Jonathan
Title: Re: masks earlier declaration in same scope Hello, I have a parameter my $name0 = "c:/test"; $name0 is used for opening a file throughout my program. I have used it more than once and therefore it says that $name0 masks earlier declaration in same scope.

RE: What do you use to access AS documentation?

2001-01-02 Thread Dave . Clarke
I recently installed Perlfect Search http://perlfect.com/freescripts/search/ on my NT4 machine with an Apache Server. I index all the HTML files in the AS distribution, as well as all installed packages. The index takes several minutes to run, which I schedule every night, but the look up is am

R: Intercept output(s)

2001-01-02 Thread Gianvittorio Negri
Great . Using the backticks I'v solved the problem. A question more: Cornish, Merrill wrote: > system() will capture STDOUT if you use redirection as part > of the command > being executed. ? How is possible to redirect the STDOUT in system command line? I have read all abou

RE: Intercept output(s)

2001-01-02 Thread Cornish, Merrill
system() will capture STDOUT if you use redirection as part of the command being executed. Otherwise, use backticks. STDOUT is the value returned by the backtick execution and the return code is saved in $?. Notice, however, that $? is the full return, so the completion code itself is $? >> 8.

Re: What do you use to access AS documentation?

2001-01-02 Thread $Bill Luebkert
Will W wrote: > > Alexander F. Gutfeldt <[EMAIL PROTECTED]> has pointed out to me that the html >documentation ActiveState provides with Perl could be a lot more useful if I used an >external search engine on it-- something that would do a global search of the files >for given keywords. > > I

Re: What do you use to access AS documentation?

2001-01-02 Thread Brian Steele
My solution: Put the html documention in a webfolder on your NT/IIS4 box, then perform searches via the Index Server. Brian Steele www.spiceisle.com - Original Message - From: "Will W" <[EMAIL PROTECTED]> To: "Perl-Win32-Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, January 02,