Re: Include statement..Boy am I a newbie

2001-07-03 Thread Ron Grabowski
> In linux it automatically looks in the current directory. However, with > windows, it looks to C:/Perl/lib or C:/Perl/site/lib . All versions of Perl look in the global array @INC to see which directories to look for files: perl -v Characteristics of this binary (from libperl): Locally appl

RE: scalar context question

2001-07-03 Thread Joseph P. Discenza
Ron Grabowski wrote, on Tuesday, July 03, 2001 1:26 PM : > > I don't think it would force a scalar context. => is just a shorthand : for comma in a list. In other words, $b in the following three : code segments : would get the same results: : : A comma that adds single quotes the value to its l

Include statement..Boy am I a newbie

2001-07-03 Thread Adam F. St. Pierre
Ok, just to prove to one and all that I am a newbie at Perl programming: The Require statement. (i.e., require("mylib.pl");) In linux it automatically looks in the current directory. However, with windows, it looks to C:/Perl/lib or C:/Perl/site/lib . I tried putting the pl file into those dire

RE: [OLE] funnies

2001-07-03 Thread Joseph P. Discenza
Ken Brown wrote, on Tuesday, July 03, 2001 12:21 PM : #With ActiveWindow.Selection.ShapeRange : #.Fill.Visible = msoTrue : #.Fill.ForeColor.RGB = RGB(255, 124, 128) : #.Fill.BackColor.RGB = RGB(102, 255, 102) : #.Fill.TwoColorGradient msoGradientDiagonalDown, 1

Re: scalar context question

2001-07-03 Thread Ron Grabowski
> > I don't think it would force a scalar context. => is just a shorthand for comma in a list. In other words, $b in the following three code segments would get the same results: A comma that adds single quotes the value to its left. ___ Perl-Win32-Us

Re: Regular expression

2001-07-03 Thread Ron Grabowski
> print "$1 \n" if $text =~ /\/(.+):/; > print "$1 \n" if $text =~ /\/([^\/]+):/; Or you could do it in one line: (split/:\s/)[2] =~ m|.*/(.*)$|; ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/

Re: How to download a file on client System.

2001-07-03 Thread David S. Rosinger
"Syed Anwaruddin" <[EMAIL PROTECTED]> writes: > Yes. On my HTML Page I have a Begin Download Button.Once I click this Files > get zipped and I get Save As (x-zzip-compressed Application) Dialog Box. In > the Selection field of the Dialog box I get my Perl Script as default. I > want my my zip

Re: scalar context question

2001-07-03 Thread David Johnson
Thanks, excellent point. I slip and tend to think of the => operator as a sort of assignment. Appreciate your help. david "Shea, Linchi" wrote: > > I don't think it would force a scalar context. => is just a shorthand for comma in a >list. In other words, $b in the following three code segme

Re: How to kickoff a perl program on a different machine

2001-07-03 Thread rotaiv
At 06/29/2001 09:23 AM, Satish Vadlamani wrote: > From wihtin a perl script, I want to kickoff another perl script > asynchronously on another machine. I want to open another window on that > machine (winNT, 2000). How do I do that. Appreciate it. Check out psexec from SysInternals - this

RE: Regular expression

2001-07-03 Thread Richard A. Evans
Assuming this line is typical, here is a script which gives a couple of ways to approach the regex: $text = 'LOG_INFO : cpcdos22.col.bsf.alcatel.fr: read request for /bootp/cygwin.bat: success.'; print "$1 \n" if $text =~ /\/(.+):/; print "$1 \n" if $text =~ /\/([^\/]+):/; Which outputs:

[OLE] funnies

2001-07-03 Thread Ken Brown
#With ActiveWindow.Selection.ShapeRange #.Fill.Visible = msoTrue #.Fill.ForeColor.RGB = RGB(255, 124, 128) #.Fill.BackColor.RGB = RGB(102, 255, 102) #.Fill.TwoColorGradient msoGradientDiagonalDown, 1 #End With I can get this working in Perl but don't know h

scalar context question

2001-07-03 Thread David Johnson
I'm writing a large tool that includes parsing of html templates. My parser looks for $$\w$$ strings in the html file and substitutes them for a corresponding string passed to the parser in a hash reference. It is called like this: iPrint('editNSRec',{'$$MSG$$'=>@rows,'$$NS_EDIT_AREA$$'=>$nsEdi

RE: refresh

2001-07-03 Thread Dunnigan,Jack [Edm]
I'm not sure 'why' you are using an entry in the first place? It sounds as if you only want to show the user the last line of a file (but not necessarily let them edit the entry - is that correct?). If that is indeed the case, then consider using a Label with -textvariable. If you still want to u

RE: Perl on IIS

2001-07-03 Thread Ember Normand
Adam, There's a couple of problems with your code. The following code works: $name = "World"; print "Content-type: text/html\n\n"; print < Hello $name ! EOT Notice, there is no << in the print "Content". Also, the print

Re: external program and stdin

2001-07-03 Thread Ron Grabowski
> I have an external program that I access with the back > tick operator (`program.exe`) -it works fine, but I do > not know how to send it certain parameters through > stdin after it executes. For example what I really > want to do is to execute the program, and then send it > some data through s

RE:update Gui

2001-07-03 Thread Jorge Goncalvez
Hi, is anyone had worked around updating Gui Entry Box with Perl Tk? Thanks. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

RE: Curiosity: A.I. - Fuzzy Logic, Neural Nets

2001-07-03 Thread Adam Frielink
You may want to check out the mailing list on the AI subject as well.. http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/perl-AI Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Toby Stuart Sent: Tuesday, July 03, 2001 12:46 AM To: 'Christopher

RE: Character limit for file names

2001-07-03 Thread Cornish, Merrill
You may be running into a limit for file extension names rather than basenames. Win32 will allow multiple periods in a file name. Can you try appending ".18_33_24" rather than "_18_33_24"? Merrill -Original Message- From: Jamison, Shawn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03

Character limit for file names

2001-07-03 Thread Jamison, Shawn
I'm using Win2K sp1 ActiveState ActivePerl Build 626 network install. I've run into a situation where I try to use File::Copy, a system call to copy, and a system call to mv on this source file name spexp-n0123.log--7-3-2001 (28K file) To this destination name spexp-n0123.log--7-

Re:refresh

2001-07-03 Thread Jorge Goncalvez
In fact I try with the method raise but it didn't work, what I want is when I modifie my file ,it modifie dynamically my entries box , because now I must close and open my gui to see modifications to my Entryboxes,How can I update dynamically my EntryBoxes when my file is modified? Thanks __

Re: Re:Refresh

2001-07-03 Thread Kuhnibert
hi, don't know whether it works for you, but i have a listbox widget which i use as a kind of log display in my TK window, and every time a new entry is added i call the raise method so the entry comes into effect immediatley ... sub logupd { my $msg = shift; $listBox->insert('end',$msg)

Re: Perl on IIS

2001-07-03 Thread Mark G. Franz
You can't just change the extension without changing the extension map in the Internet Service Manager too. Right click on the web site you need to edit. Under the Home Directory tab, select Configuration, Add the extension and properties for the .cgi file. You should already have a .pl and .pl

RE: Perl on IIS

2001-07-03 Thread Adam F. St. Pierre
Tried to change teh extension Just displayed everything in the file, including the code prior to print functions. On Mon, 2 Jul 2001, Tom Heady wrote: > as stated previously look in the ActivePerl-WinFaq6 > it should be in the Perl\html\faq\Windows directory > > short answer: > change the

Re: filehandle to both STDOUT and file

2001-07-03 Thread Kuhnibert
> > small question: how can i make a filehandle to print to two different > > locations? > > > > what i want to to is that somthing like ... > > > > open LOG, "logfile.txt"; > > print LOG "Session started"; > > > > ...prints to both the logfile and STDOUT in case the the script is called in > > ve

Re:Refresh

2001-07-03 Thread Jorge Goncalvez
Hi , I have made a Gui which read in a file to give some informations in some Entry boxes and it works fine but now I would like to refresh this information when this file is modified I would like to modified the entry boxes too. How can I do this? $FILE='c:\\CYGWIN_SYSLOG.txt'; open