Re: help me with this!!

2000-05-22 Thread Troy Parry
What about this? @city1 = ('homer','bart','lisa','maggie','me', ... lots of values); @city=(); # this clears @city for($i=0;$i3;$i++){ push (@city,$city1[$i]); } - @city will equal ('homer', 'bart', 'lisa') --- You are currently subscribed to perl-win32-users as:

How to find the element no. of Grep match?

2000-05-22 Thread JIMMY
hi perl friends, i have a @list that contains elements i do not know. i'm using grep to match some words inside the @list. for example: $match = grep /\d/, @list; my question is: is there a way to find the element No. eg: $list[number] of the latest match? thanks! --- You are currently

RE: system();

2000-05-22 Thread Bellenger, Bruno (Paris)
"Hogue, Jon" wrote: I want to run a dos command and play with the output of the command. For example, If I do system("foo.exe"), how do I get the ouput of foo.exe. (not the exit status). Open it in a pipe: #open(FOO, "foo.exe|");

Re: How to find the element no. of Grep match?

2000-05-22 Thread Philip Newton
JIMMY wrote: i have a @list that contains elements i do not know. i'm using grep to match some words inside the @list. for example: $match = grep /\d/, @list; my question is: is there a way to find the element No. eg: $list[number] of the latest match? I don't think so. You'll probably

symbolic links

2000-05-22 Thread cizaire_liste
Hello, I have a program on unix that use symlink, This function is not implemented on windows : does anybody knows how to create symlinks on windows ? Regards, __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger.

Re: outputting shtml file thru a cgi script

2000-05-22 Thread Philip Newton
alan.swan wrote: IIRC, of course it can't work. SSI works via the web server replacing the SSI directives when serving out the pages. CGI works by sending the output directly to the browser. So the web server has no chance to process the SSI directives. That's not quite true, as far as I

Tree-like data structures in Perl

2000-05-22 Thread Eduard Pandele
Hello ! This is my problem : I have to build a hierarchical menu in HTML from a tree of directories. Let's say I have this directory structure : root/ root/one root/one/a root/one/b root/two root/three root/three/a I must get a series of html documents which should allow me to "walk" through

RE: How to disable maximise/minimise/close button in Perl/Tk wind ow?

2000-05-22 Thread Dunnigan,Jack [Edm]
You are supposed to be able to do this using the Tk::Mwm module on Unix. However, this doesn't seem to exist on Win32...I assume because it does not use Motif Window Manager. Anyways, there are two other options (with drawbacks): 1. $top-overrideredirect(1); - This will get rid of the

Re: Curve Fitting and statistics

2000-05-22 Thread tim_meadowcroft
I am looking for statistics modules to enable me to fit trendlines to charts. I am thinking of linear regression, logrithmic, exponential, power and moving averages. I found a module called Statistics OLS dated 1998. Before I continue to look for modules I thought I would ask the community

Re: How to find the element no. of Grep match?

2000-05-22 Thread tim_meadowcroft
i have a @list that contains elements i do not know. i'm using grep to match some words inside the @list. for example: $match = grep /\d/, @list; my question is: is there a way to find the element No. eg: $list[number] of the latest match? ($first_hit_number) = grep( $list[$_] =~ /\d/,

INSTALL: Can't get large file support to work with -s file size operator

2000-05-22 Thread Frederik . Durant
Hi, I downloaded ActivePerl-5_6_0_613.msi, installed it on my Windows NT 4.0, SR 5, and saw that it did not have large file support compiled in. Before going on, does anyone know if ActiveState plans to offer such a precompiled build in the near future, or can anyone point me to one? In the

Virus Warning

2000-05-22 Thread John Deighan
I have no idea what this means, but... I decided to install the latest ActivePerl on my Windows NT 4.0 computer. I had release 611 installed, so I downloaded the release 613 installer and ran it. It told me that I had to first uninstall the previous version (I liked it better when the new

RE: system();

2000-05-22 Thread Joe Schell
'21' works on WinNT. I am not so confident that it works in the standard shell for win 9x. Has anyone verified this? Behalf Of Bellenger, Bruno (Paris) "Hogue, Jon" wrote: I want to run a dos command and play with the output of the command. For example,

Re: perl passing variables to ole automation objects

2000-05-22 Thread Jan Dubois
On Sat, 20 May 2000 21:19:04 +0200, "Rudi Farkas" [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote on 17 May 2000 i took Jan's advice and started looking into the wide character API and stumbled across the (microsoft specific) class _bstr_t. If I understand correctly, Ed's problem turned out

Re: symbolic links

2000-05-22 Thread Jan Dubois
On Mon, 22 May 2000 08:39:05 -0600, "Joe Schell" [EMAIL PROTECTED] wrote: Symlinks are not support on WinNT, win 9x. I had heard reports that Win 2000 (the WinNT replacement) would support them, but I haven't seen anything to confirm that. NTFS 5 (included in Win2K) supports reparse points,

RE: symbolic links

2000-05-22 Thread kevin . burton
According to an article in November 1998 issue of MSJ there are hard links with a new API called CreateHardLink. This is only available with Windows 2000 and symbolic links I think are somewhat different. Kevin -Original Message- From: Joe Schell [mailto:[EMAIL PROTECTED]] Sent: Monday,

Re: symbolic links

2000-05-22 Thread Jan Dubois
On Mon, 22 May 2000 10:23:58 -0500, [EMAIL PROTECTED] wrote: According to an article in November 1998 issue of MSJ there are hard links with a new API called CreateHardLink. This is only available with Windows 2000 and symbolic links I think are somewhat different. Hard links were always

Re: STDIN and STDOUT

2000-05-22 Thread Paul Rogers [CE]
Does your command line program accept command line arguments? As in: $command = open(FILE,"c:\\apps\\blah.exe -arg1 blaharg|"); What command are you trying to execute? p --- --- You are currently subscribed to perl-win32-users as: [archive@jab.org] To unsubscribe, forward this message to

RE: ppm Q: attempt to install Tk

2000-05-22 Thread ron . wantock
Actually Tk isn't a single module, There's more like 80 modules. Between the modules, autofiles, and documentation, the version of Tk than I have loaded takes up about 5Meg of space. The newest version is probably a little bigger than that. I'm not exactly sure how PPM handles its downloads,

RE: system();

2000-05-22 Thread Fauzi Ashurex
I want to execute "gettag.pl -q TagName" and capture the output of the command, I have tried different ways, but no luck! The "gettag.pl -q TagName" will return one "1" if it's true, the TagName exist in the Tagdb, else will return zero "0", so I would like to capture the "1" and the "0" 1-

RE: system();

2000-05-22 Thread Frank Merrow
I am jumping in the middle of this tread without the whole thing . . . However, this isn't the old CMD.EXE redirection problem is it? STDOUT isn't redirected properly in some cases. It has to do with the nice magic CMD.EXE will do if you do things like type sheet.xls at the command prompt. They

RE: system();

2000-05-22 Thread Hogue, Jon
2- $Tag = system ("gettag.pl -q $TagName") ; print "Tag: $Tag"; * Two things happen here: A- If true will print to the screen 1 -- from the call to system Tag:0 -- from print B- if not true will print to the screen 0

RE: ppm Q: attempt to install Tk

2000-05-22 Thread Charles Maier
The Tk that PPM installs only takes/uses 3.1 Meg. I do not know what this 'means' but the basic install is nowhere near 14 meg. HTH Chuck -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, May 22, 2000 12:26 PM To:

RE: INSTALL: Can't get large file support to work with -s file si ze operator

2000-05-22 Thread Krueger, Jason
From: Jan Dubois [mailto:[EMAIL PROTECTED]] On Mon, 22 May 2000 3:26:33, [EMAIL PROTECTED] wrote: I downloaded ActivePerl-5_6_0_613.msi, installed it on my Windows NT 4.0, SR 5, and saw that it did not have large file support compiled in. Before going on, does anyone know if

RE: ppm Q: attempt to install Tk

2000-05-22 Thread ron . wantock
You are probably only looking at the 'site/lib/Tk' directory, there is also the 'site/lib/auto/Tk' and 'html/lib/site/Tk' directories. I don't know how much space v800.022 takes up for all this, but 800.015 is just over 5Meg. Also, as Jan described, PPM downloads the .tar.gz file, decompresses

RE: TRANS SUBSTITUTION

2000-05-22 Thread Douglas Wilson
On 05/20/00, "Wagner-David [EMAIL PROTECTED]" wrote: You don't want tr, but s/ such as s/\/B//g; and if '/' is part of your pattern, you probably want to choose a different delimiter so that you don't need to backslash it, e.g.: s|/B||g; or s#/B##g; or whatever floats your boat. HTH,

What is wrong with MakeMaker?

2000-05-22 Thread Chris Charabaruk
Whenever I run makefile.pl (which uses MakeMaker) I always end up with this: C:\WINDOWS\Profiles\Chris\Desktop\XML-RSS-0.8perl makefile.pl Checking if your kit is complete... Looks good Bad command or file name Bad command or file name Unable to find a perl 5 (by these names:

RE: What is wrong with MakeMaker?

2000-05-22 Thread Joe Schell
What operating system are you using (and command shell if relevant.) Behalf Of Chris Charabaruk Whenever I run makefile.pl (which uses MakeMaker) I always end up with this: C:\WINDOWS\Profiles\Chris\Desktop\XML-RSS-0.8perl makefile.pl Checking if your kit is complete... Looks good

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

RE: system();

2000-05-22 Thread Joe Schell
The questions are not related. How are you executing it? Using this in temp.pl print @ARGV; And a command line of perl temp.pl red yellow blue I get this output redyellowblue Which is what I would expect. On Behalf Of Peter Eisengrein Similar question... in

RE: Tree-like data structures in Perl

2000-05-22 Thread Garold L. Johnson
You don't really need Per tree structures. The directory is already tree structured, so what you need to do is to walk the directory tree producing the output directly. Walk a single level of the directory. If the file is a directory, either process it immediately or place it in an array (a

RE: What is wrong with MakeMaker?

2000-05-22 Thread Joe Schell
Usually when I see that sort of output, I usually guess it is because the command shell doesn't support multiple commands on one line. That can be tested by answering the following two questions. In the makefile does '' appear is a shell command like the following $(PERL) ... temp.xs

Re: What is wrong with MakeMaker?

2000-05-22 Thread Chris Charabaruk
I found this in the makefile itself. disttest : distdir cd $(DISTVNAME) $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) Makefile.PL cd $(DISTVNAME) $(MAKE) cd $(DISTVNAME) $(MAKE) test But, that's not where the problem actually lies. It's when MakeMaker actually generates the makefile that I got

Idle Callback - What is it?

2000-05-22 Thread Troy Parry
I get the following error after I destroy a toplevel widget then try to recreate it. $Columns-destroy() if Tk::Exists($Columns); Tk::Error: Failed to autoload 'Tk::Widget::lists' at derived.pm. . . Idle Callback What causes this error, and what is Idle

Storing an array in a harsh

2000-05-22 Thread perl
Just wondering if it is possible to store an array in a harsh ? Especially when dealing with a situation where one key will have to refer to an array while other keys refer to scalars. Example: $this-{'name'} = "Joseph"; $this-{'hobby'}= "Football"; $this-{'friends'}=( "Jean" , "Eric"