help with compiling on win2000 with vs.net

2004-06-29 Thread lonnie percent
hi all this is my first post and I need some help in compiling perl op sys win2000 pro I have vs.net 2003 I have cd'd to C:\PROGRA~1\MICROS~3.NET\VC7\BIN> for nmake I another other instances of nmake in sdk\v1.1\bin but am using the above I ran vcvars23.bat PATH has c:\perl\perl-5.8.3\win32 I

Re: Nested {}

2004-06-29 Thread Jeff 'japhy' Pinyan
On Jun 29, David Arnold said: >\backans{If $x=y^{2n}$ and $z=y^{3n}_{11}$, then we can substitute > to find a solution.} > >I'd like to scan the file and replace all of these with this format: > >\begin{answer} >If $x=y^{2n}$ and $z=y^{3n}_{11}$, then we can substitute >to find a solution. >

Re: Favorite email parser?

2004-06-29 Thread JupiterHost.Net
Brian Gerard wrote: Hi all- Hello, I'm about to start a project that goes a little something like this... Right now, alerts get automatically emailed to a central address which due to the volume is largely ignored. You know the drill: "Ooo! It would be great if we got notified when resource X is r

CGI-Perl fails to work on Solaris

2004-06-29 Thread Pasumarthi Suresh
Hi, My perl script which uses CGI module fails to work in Solaris giving Standard HTTP 500 Internal server error.I checked the Apache log. It says "Premature end of script headers:" But it works fine in HPUX and Windows. Is there any thing That has to be take care of in Solaris. Thanks in

RE: Nested {}

2004-06-29 Thread David Arnold
Charles, Very nice indeed. I learned a lot with your example. Unfortunately, there are a lot of situations where the lines wrap. For example, \backans{Now is the time for all good men to come to the aid of their country. The domain of $f(x)=\sqrt{2x+3}$ is $\{x:\,x\ge -3/2\}$.} Do you have sim

Re: Installing a module when you have limited permissions

2004-06-29 Thread Gunnar Hjalmarsson
Lrmk wrote: I used to upload the pm files in to a directory using a FTP program and in to a folder in my web site and add the full path of that directory in to the @INC array in each of the perl scripts that uses that module and then inport the module. So far it worked for me. ex:- if your module i

Re: Installing a module when you have limited permissions

2004-06-29 Thread LRMK
I used to upload the pm files in to a directory using a FTP program and in to a folder in my web site and add the full path of that directory in to the @INC array in each of the perl scripts that uses that module and then inport the module. So far it worked for me. ex:- if your module is MyModule.

RE: Nested {}

2004-06-29 Thread Charles K. Clarkson
David Arnold <[EMAIL PROTECTED]> wrote: : Suppose I have a number of lines in a latex file like this: : : \backans{If $x=y^{2n}$ and $z=y^{3n}_{11}$, then we can : substitute to find a solution.} : : I'd like to scan the file and replace all of these with : this format: : : \begin{answer} : If

Re: Favorite email parser?

2004-06-29 Thread Daniel Staal
--As of Tuesday, June 29, 2004 3:46 PM -0700, Brian Gerard is alleged to have said: 1) Does this sound like a reasonable approach to the problem, given the relatively low amount of detail I've provided? Anyone dealt with this type of thing before and have any gotchas for me? I can't say anything

Nested {}

2004-06-29 Thread David Arnold
All, Suppose I have a number of lines in a latex file like this: \backans{If $x=y^{2n}$ and $z=y^{3n}_{11}$, then we can substitute to find a solution.} I'd like to scan the file and replace all of these with this format: \begin{answer} If $x=y^{2n}$ and $z=y^{3n}_{11}$, then we can sub

Regexp::Parser v0.01

2004-06-29 Thread Jeff 'japhy' Pinyan
The first version of Regexp::Parser is now available. It's not on CPAN because the uploading server is down right now. You can get it from http://japhy.perlmonk.org/modules/ In the near future, I'll have Regexp::Explain ready for downloading. For those of you familiar with YAPE::Regex::Expla

Need suggestions

2004-06-29 Thread David Arnold
All, Being only moderately comfortable with Perl, I find myself in need of some direction on a more complex task. I have a tex file containing a large number of exercises shaped as follows: \ex This is the text of the exercise as it appears in the book. The exercise may have several parts. \pt T

Re: Favorite email parser?

2004-06-29 Thread Brian Gerard
Forgot to mention the platform. This will be on a FreeBSD system, and the emails will be in the standard flat file format (mbox). Didn't want anyone going too deep on the M$/Exchange side of the house. :) /~~\ | Brian Gera

Favorite email parser?

2004-06-29 Thread Brian Gerard
Hi all- I'm about to start a project that goes a little something like this... Right now, alerts get automatically emailed to a central address which due to the volume is largely ignored. You know the drill: "Ooo! It would be great if we got notified when resource X is running low! Then we cou

Re: mail

2004-06-29 Thread John W. Krahn
Jack Jack wrote: > > Hi All, Hello, > I have two arrays @a and @b, > each of the arrays have lotz of elements. > what i want is the first element of @a should be assigned the first element of > array @b. If you want to replace the first element of @a with the first element of @b: $a[ 0 ] = $

Re: Extracting fields from a data file

2004-06-29 Thread John W. Krahn
Mohammed Chafik wrote: > > Hi all, Hello, > I have input file like this: > > header, 06-12-2004, path, /usr/bin/sh,attribute,100555,root,other,315,565690, > subject,bscs,sgrp,9936,6785,0 0,return,success,0 (line1) > > hea

Re: ways to change the first char from a filename (with full path)

2004-06-29 Thread John W. Krahn
Gunnar Hjalmarsson wrote: > > Rod Za wrote: > > i'm trying to make a code that get a file name (with full path) and > > change the first char of the filename. Someone can say me if > > there's a better way to do this?: > > Bob gave you a more *portable* solution. A *simpler* (but not > portable)

Re: Help on permissions for CGI

2004-06-29 Thread Ramon Chavez
First. Sorry for the name. I had the Outlook Express configured that way. Second Thanks, I had the idea that problem was new. I'll check it with the service provider before attemping to use the .httaccess Thanks again. -rm- - Original Message - From: "Gunnar Hjalmarsson" <[EMAIL PROTECT

Re: Help on permissions for CGI

2004-06-29 Thread Gunnar Hjalmarsson
Webmaster wrote: I am on a new server and have discovered the Directories in the CGI-BIN are visible to everybody. Your question is very much off topic. This list is for Perl, not for configuration of web servers. My first advice would be to leave the server for a sensibly configured one. This is,

RE: Help on permissions for CGI

2004-06-29 Thread Bob Showalter
WEBMASTER wrote: > Hello everybody. Hi. Real names appreciated. > > I am on a new server and have discovered the Directories in the > CGI-BIN are visible to everybody. This is, if a type > www.mysite.com/cgi-bin I get a list of all the files and > subdirectories, and so for every subdirectory.

Help on permissions for CGI

2004-06-29 Thread WEBMASTER
Hello everybody. I am on a new server and have discovered the Directories in the CGI-BIN are visible to everybody. This is, if a type www.mysite.com/cgi-bin I get a list of all the files and subdirectories, and so for every subdirectory. I had never had this issue. What is the best permission f

Re: Extracting fields from a data file

2004-06-29 Thread Gunnar Hjalmarsson
Mohammed Chafik wrote: Due to your remarques, my script works properly now : Does it? It does not meet your original specification. This is what it outputs for me: header: path: subject:bscs header: path: subject:bscs header: path: subject:bscs #/usr/local/bin/perl -w --^^ Please copy and paste,

RE: Extracting fields from a data file

2004-06-29 Thread mohammed chafik
There is almost no difference, the only thing to do (to have the first format) is changing: $line = join(":", $fields[0], $fields[2], $fields[$k], $fields[$k+1]); by $line = join(",", $fields[0], $fields[1], $fields[2],$fields[$k], $fields[$k+1]..); - Original Message

RE: s::LocalGroupGetMembers

2004-06-29 Thread perl.org
On Tue, 29 Jun 2004 12:50:14 -0400, perl.org wrote > Thanks. So I have to pass the SID to some other function to get the > actual username? or call a different function? I tried > LocalGroupGetMembersWithDomain (which should give domain\users) but > it's not any better and it returns non-zer

RE: Extracting fields from a data file

2004-06-29 Thread Charles K. Clarkson
mohammed chafik <[EMAIL PROTECTED]> wrote: : Due to your remarques, my script works properly now: : Here is the new version after modifications (I'll be : glad, if you have any seggestion to make it better, : actually the script uses big files, more than 200MB): The report produced is very d

disabling Perl "threads" and "debugging" to allow DBI install

2004-06-29 Thread Tom McCarty
I have tried to install the DBI module for Perl and experienced the bug mentioned in the DBI Readme file: Note: There is a bug in perl 5.8.2 when configured with threads and debugging enabled (bug #24463) which causes a DBI test to fail. How can I disable "threads" and "debugging" ? Is there an

Re: Extracting fields from a data file

2004-06-29 Thread Philipp Traeder
On Tuesday 29 June 2004 19:26, Wiggins d Anconia wrote: > > On Tuesday 29 June 2004 18:44, mohammed chafik wrote: > > > That's what i've tried (may be it is not the best approch); > > > > If you ask me, the general approach is quite ok... > > Good suggestions, if we are going to stick with the loop

Re: Extracting fields from a data file

2004-06-29 Thread mohammed chafik
Thank you, Due to your remarques, my script works properly now : Here is the new version after modifications (I'll be glad, if you have any seggestion to make it better, actually the script uses big files, more than 200MB ) : #/usr/local/bin/perl -w $i=0; $k=0; open (INDATA, "out_file.txt") || d

Re: Win32::NetAdmin::LocalGroupGetMembers

2004-06-29 Thread perl.org
Thanks. I hadn't thought to try this on my workstation but it works there, so my guess is it's the version of Perl on the server (I don't think the library is corrupt since I get the same results in dev and prod). Unfortunately this is from the vendor so I can't fix it. This is perl, version 5.0

Re: Extracting fields from a data file

2004-06-29 Thread Wiggins d Anconia
> On Tuesday 29 June 2004 18:44, mohammed chafik wrote: > > That's what i've tried (may be it is not the best approch); > > If you ask me, the general approach is quite ok... > > > > > > for ($i = 0; $i < 400; $i++) { > > The other source for the messages is that you're trying to access valu

Re: ways to change the first char from a filename (with full path)

2004-06-29 Thread Gunnar Hjalmarsson
Rod Za wrote: i'm trying to make a code that get a file name (with full path) and change the first char of the filename. Someone can say me if there's a better way to do this?: Bob gave you a more *portable* solution. A *simpler* (but not portable) way is to skip the split and join operations and r

Re: Extracting fields from a data file

2004-06-29 Thread Philipp Traeder
On Tuesday 29 June 2004 18:44, mohammed chafik wrote: > That's what i've tried (may be it is not the best approch); If you ask me, the general approach is quite ok... > Any way, My script doesn't work, it returns an error message (Use of > uninitialized value at formater.pl line 22, chunk 4.) >

Re: Extracting fields from a data file

2004-06-29 Thread Wiggins d Anconia
Please bottom post... > That's what i've tried (may be it is not the best approch); > Any way, My script doesn't work, it returns an error message (Use of uninitialized value at formater.pl line 22, chunk 4.) > > - > #!/usr/local/bin/perl -w

RE: Extracting fields from a data file

2004-06-29 Thread Charles K. Clarkson
From: mohammed chafik wrote: : Hi all, : : I have input file like this: : -- : -- : header, 06-12-2004, path, : /usr/bin/sh,attribute,100555,root,other,315,565690, : subject,bscs,sgrp,9936,6785,0 0,retu

RE: s::LocalGroupGetMembers

2004-06-29 Thread perl.org
Thanks. So I have to pass the SID to some other function to get the actual username? or call a different function? I tried LocalGroupGetMembersWithDomain (which should give domain\users) but it's not any better and it returns non-zero (error) without providing any information about the error?

RE: ways to change the first char from a filename (with full path )

2004-06-29 Thread Rod Za
Bob and Thomas, Thank you, very much. Rod Za --- Bob Showalter <[EMAIL PROTECTED]> wrote: > Rod Za wrote: > > Hi all, > > > > i'm trying to make a code that get a file name (with full path) and > > change the first char of the filename. Someone can say me if there's > > a better way to do this?

Re: Extracting fields from a data file

2004-06-29 Thread mohammed chafik
That's what i've tried (may be it is not the best approch); Any way, My script doesn't work, it returns an error message (Use of uninitialized value at formater.pl line 22, chunk 4.) - #!/usr/local/bin/perl -w $i=1; $k=1; open (INDATA, "out

Re: Extracting fields from a data file

2004-06-29 Thread Philipp Traeder
On Tuesday 29 June 2004 17:04, mohammed chafik wrote: > header, 06-12-2004, path, > /usr/bin/sh,attribute,100555,tom,other,315,56,11,54,77,10,88, > subject,bscs,sgrp,9936,6785,0 0,return,success,0 (line3) > --- > > I need to genera

RE: ways to change the first char from a filename (with full path)

2004-06-29 Thread thomas kinzer
use File::Basename; -Thomas Kinzer Original Message Follows From: Rod Za <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: ways to change the first char from a filename (with full path) Date: Tue, 29 Jun 2004 09:03:42 -0700 (PDT) Hi all, i'm trying to make a code that get a file name (w

RE: ways to change the first char from a filename (with full path )

2004-06-29 Thread Bob Showalter
Rod Za wrote: > Hi all, > > i'm trying to make a code that get a file name (with full path) and > change the first char of the filename. Someone can say me if there's > a better way to do this?: > > _BEGIN_ > #!/usr/bin/perl -w use strict; > my($file) = $ARGV[0]; #receives th

creating a table in Microsoft Word

2004-06-29 Thread gripman7
Does anyone know how to access Microsoft Word and create a table? Henri [EMAIL PROTECTED]

Re: parsing large amounts of text

2004-06-29 Thread Andrew Gaffney
John W. Krahn wrote: Andrew Gaffney wrote: I'm working on a custom Perl script to parse my Apache logs and report custom information. When I run the following program, it ends up eating all available RAM (the system has 1GB) and dying. My access_log is ~410MB. Am I doing something wrong? The only p

Re: Installing a module when you have limited permissions

2004-06-29 Thread Gunnar Hjalmarsson
Jason Corbett wrote: I wanted to know if someone has installed a PERL module on a server where they had limitied permissions? It depends on what you mean by "limited permissions". If you have shell access, you can follow the FAQ answer Bob pointed you to. If not, and provided that it's a plain Perl

ways to change the first char from a filename (with full path)

2004-06-29 Thread Rod Za
Hi all, i'm trying to make a code that get a file name (with full path) and change the first char of the filename. Someone can say me if there's a better way to do this?: _BEGIN_ #!/usr/bin/perl -w my($file) = $ARGV[0]; #receives the filename my @tmp = split(/\//,$file);

Re: Extracting fields from a data file

2004-06-29 Thread Gunnar Hjalmarsson
Bob Showalter wrote: mohammed chafik wrote: I have input file like this: header, 06-12-2004, path, /usr/bin/sh,attribute,100555,root,other,315,565690, subject,bscs,sgrp,9936,6785,0 0,return,success,0 (line1) ... I need to ge

RE: Installing a module when you have limited permissions

2004-06-29 Thread Bob Showalter
jason corbett wrote: > Hello. I wanted to know if someone has installed a PERL module on a > server where they had limitied permissions? I am not extremely UNIX > savy but I do know the basic and know the something about the file > structures, etc. Can someone tell me how I can install MIME::Lite o

Installing a module when you have limited permissions

2004-06-29 Thread jason corbett
Hello. I wanted to know if someone has installed a PERL module on a server where they had limitied permissions? I am not extremely UNIX savy but I do know the basic and know the something about the file structures, etc. Can someone tell me how I can install MIME::Lite on a server where I may use

RE: Extracting fields from a data file

2004-06-29 Thread Bob Showalter
mohammed chafik wrote: > Hi all, > > I have input file like this: > > header, 06-12-2004, path, > /usr/bin/sh,attribute,100555,root,other,315,565690, > subject,bscs,sgrp,9936,6785,0 0,return,success,0 (line1) > ... > I nee

Re: Extracting fields from a data file

2004-06-29 Thread Wiggins d Anconia
> Hi all, > > I have input file like this: > > header, 06-12-2004, path, /usr/bin/sh,attribute,100555,root,other,315,565690, subject,bscs,sgrp,9936,6785,0 0,return,success,0 (line1) > > header, 06-12-2004, path, /usr/bin/sh,

Extracting fields from a data file

2004-06-29 Thread mohammed chafik
Hi all, I have input file like this: header, 06-12-2004, path, /usr/bin/sh,attribute,100555,root,other,315,565690, subject,bscs,sgrp,9936,6785,0 0,return,success,0 (line1) header, 06-12-2004, path, /usr/bin/sh,attribute,100

Re: mail

2004-06-29 Thread Wiggins d Anconia
Please use a more descriptive subject line, such as "Combining arrays of email addresses"... > > Hi All, > > I have two arrays @a and @b, > each of the arrays have lotz of elements. > what i want is the first element of @a should be assigned the first element of array @b. Do you mean the firs

Re: mail

2004-06-29 Thread Gunnar Hjalmarsson
Jack Jack wrote: I have two arrays @a and @b, each of the arrays have lotz of elements. what i want is the first element of @a should be assigned the first element of array @b. The result should be combined in one array @c, so that i can send the @c mail. I have a rough idea that we can in HASH,

mail

2004-06-29 Thread jack jack
Hi All, I have two arrays @a and @b, each of the arrays have lotz of elements. what i want is the first element of @a should be assigned the first element of array @b. The result should be combined in one array @c, so that i can send the @c mail. I have a rough idea that we can in HASH, but

Re: Creating images

2004-06-29 Thread Randy W. Sims
dan wrote: The only other issue I'd have, is it possible to change the font of "Custom Text" to Tahoma? If so, how do it do it, and do I need any additional files? see `perldoc GD` : look for the 'stringFT' method see also `perldoc GD::Text` example: $img->stringFT( $black, # color ref 'path/to

Re: is perl a script language?

2004-06-29 Thread Beau E. Cox
On Sunday 27 June 2004 03:06 pm, lfm wrote: > hello ,beau > > > I have installed bugzilla on the windows, but failed on the linux! > > where? > > the perl module installation! > > I download the perl module from cpan, tar them and > perl Makefile.PL > make > make test > make install > >

Re: Creating images

2004-06-29 Thread Randy W. Sims
dan wrote: The only other issue I'd have, is it possible to change the font of "Custom Text" to Tahoma? If so, how do it do it, and do I need any additional files? see `perldoc GD` : look for the 'stringFT' method see also `perldoc GD::Text` example: $img->stringFT( $black, # color ref 'path/to

Re: Creating images

2004-06-29 Thread LRMK
LRMK - Original Message - From: "dan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 29, 2004 3:33 AM Subject: Re: Creating images > This does exactly what I want, except I used the output code from > JupiterHost.Net's suggestion, as i wanted to output straight to the b

Re: Assigning a variable to hash keys and values

2004-06-29 Thread John W. Krahn
Daniel Falkenberg wrote: > > Hello All, Hello, > I currently have a hash of a hash... > > > %HoH = ( > > Key1=> { > > Apple => "Green", > > Banna => "Yellow", > > }, > > Key2=> { > > Carrot=> "Or

Re: Assigning a variable to hash keys and values

2004-06-29 Thread Philipp Traeder
On Tuesday 29 June 2004 08:49, Daniel Falkenberg wrote: > Hello All, Hi Dan, > I currently have a hash of a hash... > > > %HoH = ( > > Key1=> { > > Apple => "Green", > > Banna => "Yellow", > > }, > > Key2=> { > >

Progress.....

2004-06-29 Thread Charlene Gentle
Hi My program works thru long lists of word. How can I show the user that it is still busy and when it is done. Is there a progressmeter that I can insert into the while loop. To have a perl/tk interface for the user. Thanx Me Charlene Gentle E-pos/E-mail: [EMAIL PROTECTED] Hierdie bood

Re: Assigning a variable to hash keys and values

2004-06-29 Thread Ramprasad A Padmanabhan
On Tue, 2004-06-29 at 12:19, Daniel Falkenberg wrote: > Hello All, > > I currently have a hash of a hash... > > > %HoH = ( > > Key1=> { > > Apple => "Green", > > Banna => "Yellow", > > }, > > Key2=> { > >

Assigning a variable to hash keys and values

2004-06-29 Thread Daniel Falkenberg
Hello All, I currently have a hash of a hash... > %HoH = ( > Key1=> { > Apple => "Green", > Banna => "Yellow", > }, > Key2=> { > Carrot=> "Orange", > Tomoatoe => "Red", > }

Re: Creating images

2004-06-29 Thread dan
This does exactly what I want, except I used the output code from JupiterHost.Net's suggestion, as i wanted to output straight to the browser, not to a file. The only other issue I'd have, is it possible to change the font of "Custom Text" to Tahoma? If so, how do it do it, and do I need any additi

Re: parsing large amounts of text

2004-06-29 Thread John W. Krahn
Andrew Gaffney wrote: > > I'm working on a custom Perl script to parse my Apache logs and report custom > information. When I run the following program, it ends up eating all available > RAM (the system has 1GB) and dying. My access_log is ~410MB. Am I doing > something wrong? The only problems I

Re: newline to

2004-06-29 Thread John W. Krahn
Papo Napolitano wrote: > > > I have a textarea on a webpage that gets stored in a database. I'd like > > to convert the newline to an HTML before it gets stored so when > > I display it, the line breaks as it was typed. I've been looking around > > but haven't found an example. > > > > $text =~

Re: recursive grep for Windows

2004-06-29 Thread John W. Krahn
"Perl.Org" wrote: > > Can anyone share a script that recurses a filesystem for files containing one > or more patterns? Seems like it would be easy to write but if it's already > out there... This will probably work: #!/usr/bin/perl use warnings; use strict; use File::Find; my $dir = shift ||

Re: string seperated by multiple spaces

2004-06-29 Thread John W. Krahn
Michelle Rogers wrote: > > The point is...if you're wanting to help beginnersbe nicedon't jump > down their throatsI'd prefer not to have that type of help. Use Charles > K. Clarkson, as an example. He said the exact same thing, but said it in a > way that it should be said to beginn

Re: matching only digits

2004-06-29 Thread John W. Krahn
Guruguhan N wrote: > > Hi All, Hello, > I wanted to check whether the user input is only a > number and does contain any alphabet/s anywhere i.e. starting, > end or in-between. Can somebody tell me how to do this? That is a Frequently Asked Question and can be found in the standard pe

Re: How to email my results to a group of people....

2004-06-29 Thread Ramprasad A Padmanabhan
If you do want to use perl, you can use dozens of perl modules. Learn MIME::Parser that will help you in lot of projects. But to be frank , just for sending attachments you dont need to write a perl script ( Though it is fairly simple ) . Just use mutt mutt -a attachment.file -f fromid -s "SUBJE