Re: HTML/CGIPERL/JavaScript related

2001-07-31 Thread Rahul Garg
- Original Message - From: Rahul Garg To: [EMAIL PROTECTED] Sent: Wednesday, August 01, 2001 11:04 AM Subject: HTML related Hello , What i want is a hyperlink after activated once get disabled.. I am using HTML/PERL Can i use onClick event in hyperl

Re: is it possible?

2001-07-31 Thread Joel Divekar
Hi Rahul I am sorry to say that we always see you coming up with questions and no efforts from you end. Either you are used to spoon feeding or just want to get things done for free. This will not help you as well as the list in the long run. Thanks for your co-operation Regards Joel Jamne

HTML related

2001-07-31 Thread Rahul Garg
Hello , What i want is a hyperlink after activated once get disabled.. waiting for reply, Thanx in advance, Rahul

Re: is it possible?

2001-07-31 Thread Jeff 'japhy/Marillion' Pinyan
On Aug 1, Rahul Garg said: >How can we disable the hyperlink? This is an HTML question, and not related to Perl at all. There are many ways of "disabling" a hyperlink. * remove the tag * comment out the tag * remove the href= attribute of the tag -- Jeff "japhy" Pinyan [EMAIL P

is it possible?

2001-07-31 Thread Rahul Garg
How can we disable the hyperlink? > What i mean is that on certain condition if true the hyperlink to a > particular perl script can be activated but if false cannot be > activated(ie though the hyperlink is shown it doesnt work)just like there is > a DISABLE option in Button. > > > > > > > > >

Re: automatically naming scalars

2001-07-31 Thread Ron Woodall
Hi Brett: Thanks for the reply. At 12:08 PM 7/31/01 -0400, you wrote: >On Tue, 31 Jul 2001, Ron Woodall wrote: > > > I'm trying to take a word from a file and naming a scalar with > > that word. i.e. I find the word "target" in a file. I then need to > > create $target = "xxx" an

Re: How can you tell what version of a Perl Module you're using?

2001-07-31 Thread Brett W. McCoy
On Wed, 1 Aug 2001, Greg Matheson wrote: > I couldn't get that to work, trying on the Linux command line: > > > [greg@localhost greg]$ perl -MCGI -le "print $CGI::VERSION" Try it with single quotes: [bmccoy@dragosani bmccoy]$ perl -MCGI -le 'print $CGI::VERSION' 2.74 -- Brett

Re: help - who sponsors this list, etc.

2001-07-31 Thread Ask Bjoern Hansen
On Tue, 31 Jul 2001, Casey West wrote: > On Tue, Jul 31, 2001 at 08:31:01PM -0400, Quang Bui wrote: > : I'm writing a paper on this email list and I need to > : know the following: > : > : 1. Who sponsors this list? > > No one sponsors this list. There are several people behind the scenes > wh

Re: How can you tell what version of a Perl Module you're using?

2001-07-31 Thread Peter Scott
At 09:22 AM 8/1/01 +0800, you wrote: >On Tue, 31 Jul 2001, Peter Scott wrote: > > > >How can you tell what version of a Perl Module you're using? i.e. CGI.pm > > > print $::VERSION, e.g. (Windows example): > > > C:>perl -MCGI -le "print $CGI::VERSION" > > 2.56 > >I couldn't get that to work, tryin

Re: How can you tell what version of a Perl Module you're using?

2001-07-31 Thread Greg Matheson
On Tue, 31 Jul 2001, Peter Scott wrote: > >How can you tell what version of a Perl Module you're using? i.e. CGI.pm > print $::VERSION, e.g. (Windows example): > C:>perl -MCGI -le "print $CGI::VERSION" > 2.56 I couldn't get that to work, trying on the Linux command line: [greg@localhost greg

Converting PHP to Perl

2001-07-31 Thread CDitty
In my attempt to learn perl and make it do what I want. I am attempting to convert some php code a friend of mine did a while back. Unfortunately, with my knowledge of perl and php, this is a little over my head. If anyone could look at the following code and tell me how to make it work in

RE: Recursive directory copy

2001-07-31 Thread Wagner-David
Uncertain about File::COpy, but you might look at http://www.xxcopy.com/ which may do what you want. Wags ;) -Original Message- From: perl newbie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 18:00 To: [EMAIL PROTECTED] Subject: Recursive directory copy I have two di

Re: help - who sponsors this list, etc.

2001-07-31 Thread Casey West
On Tue, Jul 31, 2001 at 08:31:01PM -0400, Quang Bui wrote: : I'm writing a paper on this email list and I need to : know the following: : : 1. Who sponsors this list? No one sponsors this list. There are several people behind the scenes who work not for money or food, but because it's The Right

Recursive directory copy

2001-07-31 Thread perl newbie
I have two diretories ( DATA and TEST). The data directory has several subdirectories under it. I am trying to find a Perl Module/function, that will allow me to copy all of the contents of DATA into TEST. Is there a module that comes with the standard PERL distribution that will allow me to do t

help - who sponsors this list, etc.

2001-07-31 Thread Quang Bui
I'm writing a paper on this email list and I need to know the following: 1. Who sponsors this list? 2. What mail list manager (MLM) does the list use? I think it's ezmlm. 3. Where can I find the FAQ and the archive of this list? 4. Is there a web site for this list? I would appreciate any hel

Re: Randomizing an Array

2001-07-31 Thread Casey West
On Tue, Jul 31, 2001 at 06:55:14PM -0500, CDitty wrote: : At 05:44 PM 7/31/2001, you wrote: : >On Tue, Jul 31, 2001 at 06:32:15PM -0500, CDitty wrote: : >: In both my perl books. Learning Perl(O'Reilly) and Perl 5 Interactive : >: Course(Waite Group). : >: : >: The shuffle routine in not listed i

Re: Randomizing an Array

2001-07-31 Thread CDitty
Could be. It only says example. I'll try your example below shortly. Thanks for helping. Chris At 06:35 PM 7/31/2001, Michael Fowler wrote: >On Tue, Jul 31, 2001 at 06:05:18PM -0500, CDitty wrote: > > Hello all. Just joined the list and after reading through the archives, I > > couldn't fi

Re: Randomizing an Array

2001-07-31 Thread CDitty
At 05:44 PM 7/31/2001, you wrote: >On Tue, Jul 31, 2001 at 06:32:15PM -0500, CDitty wrote: >: In both my perl books. Learning Perl(O'Reilly) and Perl 5 Interactive >: Course(Waite Group). >: >: The shuffle routine in not listed in either of these books, although they >: are almost 1 year old. W

Re: Putting results of find into an array

2001-07-31 Thread Michael Fowler
On Tue, Jul 31, 2001 at 03:38:17PM -0700, Greg Tomczyk wrote: > I was wondering if some one could assist me in something I am sure is > simple for most. I am utilizing find2perl utility and implemented it into a > perl script. However I would like to have the results of the find stored > into an a

Re: Randomizing an Array

2001-07-31 Thread Casey West
On Tue, Jul 31, 2001 at 06:32:15PM -0500, CDitty wrote: : In both my perl books. Learning Perl(O'Reilly) and Perl 5 Interactive : Course(Waite Group). : : The shuffle routine in not listed in either of these books, although they : are almost 1 year old. When I try and use shuffle I get : Und

Re: Randomizing an Array

2001-07-31 Thread CDitty
In both my perl books. Learning Perl(O'Reilly) and Perl 5 Interactive Course(Waite Group). The shuffle routine in not listed in either of these books, although they are almost 1 year old. When I try and use shuffle I get Undefined subroutine &main::shuffle and my program stops. Chris At 0

Re: Randomizing an Array

2001-07-31 Thread Michael Fowler
On Tue, Jul 31, 2001 at 06:05:18PM -0500, CDitty wrote: > Hello all. Just joined the list and after reading through the archives, I > couldn't find an answer. I'm hoping someone can help. > > I have an array with 6 variables in it. I need to randomize the variables > in this array. Accordi

Re: Randomizing an Array

2001-07-31 Thread Peter Scott
At 06:05 PM 7/31/01 -0500, CDitty wrote: >Hello all. Just joined the list and after reading through the archives, I >couldn't find an answer. I'm hoping someone can help. > >I have an array with 6 variables in it. I need to randomize the >variables in this array. According to the documentat

Randomizing an Array

2001-07-31 Thread CDitty
Hello all. Just joined the list and after reading through the archives, I couldn't find an answer. I'm hoping someone can help. I have an array with 6 variables in it. I need to randomize the variables in this array. According to the documentation I have read, rand(@display_pictures) shou

Re: Splitting a string into a Array of Arrays

2001-07-31 Thread Rachel Coleman
> I know this is simpler then what I am making it but I am stumped. I used LWP::UserAgent to fetch some data from a > web page, What I need to do is to load the data which I believe is just one long string that I got from calling content() > into an array of arrays by splitting on "\n" and ",". [

Re: Printing a array of hashes of hashes of arrays

2001-07-31 Thread Michael Fowler
On Tue, Jul 31, 2001 at 05:34:39PM -0500, Chris Garringer wrote: > I have a program that has an array of days of the month, the array value > $is a hash, the value of the hash is a hash, and its value is an array > $logs[$day]{}{}[] [snip] > Can someone show me how I can print this out? Why are y

Putting results of find into an array

2001-07-31 Thread Greg Tomczyk
Hello, I was wondering if some one could assist me in something I am sure is simple for most. I am utilizing find2perl utility and implemented it into a perl script. However I would like to have the results of the find stored into an array. Basically I am trying to traverse a directory tree, and

Printing a array of hashes of hashes of arrays

2001-07-31 Thread Chris Garringer
I think that is right, I admit that Perl's data structures confuse me and I don' t have it right yet. I have a program that has an array of days of the month, the array value is a hash, the value of the hash is a hash, and its value is an array $logs[$day]{}{}[] This structure works fine to loa

Re: arrays

2001-07-31 Thread Michael Fowler
On Tue, Jul 31, 2001 at 10:21:47PM +0200, Matija Papec wrote: > Michael Fowler <[EMAIL PROTECTED]> wrote: > >Your restriction that it not use a for loop to construct the data is > >needlessly limiting. There are several ways to do what you ask, one of them > >is a for loop. > > I didn't like ide

Re:[OT]Determining array length on multidimensional arrays

2001-07-31 Thread Paul
--- "Randal L. Schwartz" <[EMAIL PROTECTED]> wrote: > > "Paul" == Paul <[EMAIL PROTECTED]> writes: > > Paul> (And as always, if I fumbled something, please tell me. =o) > > No, that's a nice summary. Thanks! ~grin!~ > This is why when people ask why we don't cover "multidimensional > arr

RE: Incorporating script

2001-07-31 Thread Ross, Jonathan C.
> Hi, If someone can help me out please I wrote a perl script which > opens two text files and then compares them and spit out the > difference. It is an error checking program which runs on NT > Platform. The first file has all the required processes listed and > the second file lists current run

Re: Determining array length on multidimensional arrays

2001-07-31 Thread Paul
--- "Randal L. Schwartz" <[EMAIL PROTECTED]> wrote: > (aside to the rest of the experts: Perl doesn't have multidimensional > arrays, people. Let's please stop confusing the newbies by calling > it that.) A very good point. I hesitate to ask what how we *should* refer to it, but the apparent

Re: arrays

2001-07-31 Thread Matija Papec
Michael Fowler <[EMAIL PROTECTED]> wrote: >> @data[0] = ("", "", ""); >> #and >> @data[1] = (1, 2, 3); > >This notation is almost certainly incorrect, what you probably meant to say >is: > >$data[0] = ["", "", ""]; >$data[1] = [ 1, 2, 3]; You're right, I wrote a wrong syntax. >> I want

Re: arrays

2001-07-31 Thread Matija Papec
Troy Denkinger <[EMAIL PROTECTED]> wrote: >which indicates that the first array is empty. The problem is the undef of >@temp. What you've put into @array is a reference to @temp. When you undef >it, you're undefing the array that the reference in array points to. > >In any event, I can't figu

Re: binary files

2001-07-31 Thread Luke Bakken
To read binary files, you need to understand read(), seek() and unpack(), as well as the underlying binary structure of the file. Peeking into the file with a hex editor will help distinguish the ASCII bits from the rest. If you know the C code that creates the file, that can help a lot! Luke e

Re: DBI connect method dumps core

2001-07-31 Thread David Kirol
Just in case anybody else runs into this problem. It turns out the machine I am working on has multiple OracleHomes. Using the oracle tool to switch to the home where the database lives solved this problem (I made ora8i the Primary home). "David Kirol" <[EMAIL PROTECTED]> wrote in message [EMAIL

Re: binary files

2001-07-31 Thread Michael Fowler
On Tue, Jul 31, 2001 at 11:31:34AM -0600, Tyler Cruickshank wrote: > Looking for some binary file help. I want to read, manipulate, and print > (in ascii) a binary file on a solaris 7 machine. I have looked into and > tried the binmode() function but this seems to be for older machines that > di

RE: Exec cgi

2001-07-31 Thread Tiago Almeida Spritzer
Is this corret: From: Tiago Almeida Spritzer [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 31, 2001 10:44 AM > To: [EMAIL PROTECTED] > Subject: Exec cgi > > > Hi, > > Anybody help me with this question? > I have two folders at the server, one with perl files > and other with html f

RE: binary files

2001-07-31 Thread Bob Showalter
> -Original Message- > From: Tyler Cruickshank [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 31, 2001 1:32 PM > To: [EMAIL PROTECTED] > Subject: binary files > > > Hello. > > Looking for some binary file help. I want to read, > manipulate, and print (in ascii) a binary file on a

Re: cannot fix an error - "Bus error (core dumped) "

2001-07-31 Thread Narendran Kumaraguru Nathan
Ken & Karthik, The same algorithm has worked for me even when I use subroutines to push in the value to the variable in the foreach loop(which is in the calling program). I really doubt the modularity of my program. I am now combining two of my programs (one with no subroutine and other well or

Re: Determining array length on multidimensional arrays

2001-07-31 Thread Peter Scott
At 11:23 AM 7/31/01 -0700, Michael Dube wrote: >Howdy, > >I know that to determine the array length of @array, the following options >are available: >a) $#array (returns last index) >b) scaler(@array) (returns true length) > >Now... if I have a multidimensional array, $array[$x][$y], how do I >det

Re: cannot fix an error - "Bus error (core dumped) "

2001-07-31 Thread Narendran Kumaraguru Nathan
Hai Karthik, Yes, I'm using Sun sparc m/c. I am not sure wether it is caused by the m/c?? I also some times get a warning saying use of uninitialised array, when the first element is null and there are valid other elements. Is this also due to the same reason? Regards, Naren. Karthik Krishnam

binary files

2001-07-31 Thread Tyler Cruickshank
Hello. Looking for some binary file help. I want to read, manipulate, and print (in ascii) a binary file on a solaris 7 machine. I have looked into and tried the binmode() function but this seems to be for older machines that differentiate between ascii and binary files. I have tried the f

Re: check array element (HELP)

2001-07-31 Thread Michael Fowler
On Tue, Jul 31, 2001 at 12:36:37PM -0500, Mooney Christophe-CMOONEY1 wrote: > Oh yeah, and another thing; i think > for (my $i=0; $i<$n; $i++) > is preferable to > for my $i (0...$n-1) > since the latter creates the entire array and then goes through the > elements, instead of merely g

Determining array length on multidimensional arrays

2001-07-31 Thread Michael Dube
Howdy, I know that to determine the array length of @array, the following options are available: a) $#array (returns last index) b) scaler(@array) (returns true length) Now... if I have a multidimensional array, $array[$x][$y], how do I determine the array length for $array[$x]? I am trying to

cgi-bin

2001-07-31 Thread todd
How can I tell if my webmaster has the CGI-Bin directory setup properly? Thanks Todd. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Sendmail

2001-07-31 Thread Top Gunner
I have ActivePerl 5.22 installed on an NT server. SendMail does not work. Is there a place I can download a sendmail component for perl or something like that? I really know very little about it. Any help is appreciated. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

RE: Incorporating script

2001-07-31 Thread Najamuddin, Junaid
Hi, Jerry Thanks for quick response I am quite new to perl If you can guide me and let me know how it can be done and what will be the syntax It will be a great help Thanks -Original Message- From: Jerry Preston [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 12:55 PM To: Najamud

Re: Incorporating script

2001-07-31 Thread Jerry Preston
Junaid, It looks to me that need to setup your bat and program to run as cron jobs. This way you can control the time and date you want them to run. Regards, Jerry "Najamuddin, Junaid" wrote: > > Hi, > If someone can help me out please > I wrote a perl script which opens two text files and t

RE: check array element (HELP)

2001-07-31 Thread Mooney Christophe-CMOONEY1
'%found_one' starts off empty. Everytime we find a new element, we add one to '$found_one{$_}' via '++'. Since '++' is postfix, it occurs AFTER the value is returned. In otherwords, '$found_one{$_}++' returns the current value and then adds one. Now, if the current element has never been read

beginners@perl.org

2001-07-31 Thread Brett W. McCoy
On Tue, 31 Jul 2001, Christiam Camacho wrote: > Is the only difference between "and" and "&&" and > "or" and "||" the precedence of the operators? > In other words, how do these statements differ (e.g.: > is any more efficient than the other?): > > open(FH,$in_file) or die "Couldn't open $in

Mail::IMAPClient::BodyStructure

2001-07-31 Thread Chris Rogers
I am using the Mail::IMAPClient module and the extension BodyStructure to connect to Exchange Server 5.5. Everything seems to be working great ( I love this module ) except for one thing. When I use the BodyStructure extension, either nothing is being returned in the object or I don't know how

RE: connecting to program

2001-07-31 Thread Peter
hi, hmm...i'll try backing up a bit. basically this is what i want to do. a webpage that screens for stocks. variables from the webpage is sent to a perl script which displays (in html format) charts based on the values and parameters passed. the perl script calls upon another script to

Re: read query string with multiple instances of name/values into hash

2001-07-31 Thread Damien Salvador
On Tue, Jul 31, 2001, Birgit Kellner wrote: > --On Dienstag, 31. Juli 2001 08:13 -0400 "Jeff 'japhy/Marillion' Pinyan" > <[EMAIL PROTECTED]> wrote: > > Thanks for the information. If it is indeed necessary to have unique > fields, I reckon I could just use the database key as a name of the inpu

Re: Standard O/I problems

2001-07-31 Thread John Fox
Rommel, Please wrap your lines at 75 or 80 columns; it makes things much more readable! You wrote: > I had problems with O/I in Perl way of programming. When I used > shell scripts it was very easy I put only in this form "./build_aux > $1 > $file 2>&1&" and I got a file with standard error as w

RE: module File::Copy

2001-07-31 Thread mark crowe (JIC)
Hi Franck If copy is doing what I suspect, that could be your problem. I'm guessing that the function is "copy ('old_file', 'new_file')", rather than, as you've used it "copy('new_file', 'old_file')". If that is the case (check the File::Copy documentation) then what your program would seem to do

Re: module File::Copy

2001-07-31 Thread Chris Milligan
COLLINEAU wrote: > copy("lmi/concat.htm","lmi/concat2.htm"); > unlink("lmi/concat2.htm"); > > there are two problems: the instruction s///i doesn't work I don't know about this one. > copying files doesn't work too. > The problem here is you are doing the copy, with copy("lmi/concat.htm","lm

RE: check array element (HELP)

2001-07-31 Thread Wagner Jeff Civ Logicon/TTMS
Hi, I am one of the beginners list's many voyeurs. Can you explain your code? Where does the "%found_one" hash get its initial value? I understand that "@_" represents the list that was passed to the subroutine and that "$_" is the current list element for each loop iteration. Does your code a

"multipart/form-data" Method "POST" to cgi script not working

2001-07-31 Thread mlists
Hello all, If anyone could shed some light on this I would be in there debt. I know what the BIG problem is...these scripts where written in perl5.004 and we have moved or are moving to 5.6.0, but I don't know where to start looking to fix the code so that is works with 5.6.0. Th

RE: perl and graphics

2001-07-31 Thread Mooney Christophe-CMOONEY1
I believe you're looking for Image::Magick from CPAN (www.cpan.org) -Original Message- From: Matt Behrens [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 11:19 AM To: [EMAIL PROTECTED] Subject: perl and graphics Hi all- I'm currently trying to find a way to batch the conversion

RE: perl and graphics

2001-07-31 Thread John Edwards
Take a look at the ImageMagick module. http://www.simplesystems.org/ImageMagick/www/perl.html -Original Message- From: Matt Behrens [mailto:[EMAIL PROTECTED]] Sent: 31 July 2001 17:19 To: [EMAIL PROTECTED] Subject: perl and graphics Hi all- I'm currently trying to find a way to batch

Re: How can you tell what version of a Perl Module you're using?

2001-07-31 Thread Troy Denkinger
On Tuesday 31 July 2001 15:14, mlists wrote: > How can you tell what version of a Perl Module you're using? i.e. CGI.pm Hopefully the kind author has defined the $VERSION variable in the module. Thus: print $CGI::VERSION; will give you the version for CGI.pm. Regards, Troy Denkinger

Re: Security Question (follow-up question)

2001-07-31 Thread smoot
> Bob Mangold <[EMAIL PROTECTED]> said: > This is somewhat alarming to me because I hadn't realized this potential > before, but is there an easy way to check what is being opened. Would using a > -f() or -d() to verify that you were actually opening a file or directory do > the trick? Be mindfu

perl and graphics

2001-07-31 Thread Matt Behrens
Hi all- I'm currently trying to find a way to batch the conversion of thousands of tiff files to jpg files. I have written perl before, but I haven't been able to find much on graphics with PERL. Is this possible? Is it worth the time to try it? Any helpful hints? Thanks for any comments!!

Re: How can you tell what version of a Perl Module you're using?

2001-07-31 Thread Peter Scott
At 12:14 PM 7/31/2001 -0700, mlists wrote: >How can you tell what version of a Perl Module you're using? i.e. CGI.pm print $::VERSION, e.g. (Windows example): C:>perl -MCGI -le "print $CGI::VERSION" 2.56 Peter Scott [EMAIL PROTECTED] http://www.perldebugged.com -- To unsubscribe, e-mail

Incorporating script

2001-07-31 Thread Najamuddin, Junaid
Hi, If someone can help me out please I wrote a perl script which opens two text files and then compares them and spit out the difference. It is an error checking program which runs on NT Platform. The first file has all the required processes listed and the second file lists current running proce

How can you tell what version of a Perl Module you're using?

2001-07-31 Thread mlists
How can you tell what version of a Perl Module you're using? i.e. CGI.pm Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: cannot fix an error - "Bus error (core dumped) "

2001-07-31 Thread Karthik Krishnamurthy
you seem to be using a SUN SPARC. A bus error is often induced on these architectures when pointer access is not aligned on word boundary. whether this is caused by the Perl binary itself or the script i don't know /kk On Tue, Jul 31, 2001 at 04:39:54PM +0530, Narendran Kumaraguru Nathan wrot

beginners@perl.org

2001-07-31 Thread Jeff 'japhy/Marillion' Pinyan
On Jul 31, Christiam Camacho said: > Is the only difference between "and" and "&&" and >"or" and "||" the precedence of the operators? && has higher precedence (it binds more tightly) than 'and'. $x = 2 and 5; # ($x = 2) and 5; $x = 2 && 5' # $x = (2 && 5); -- Jeff "japhy" Pinyan

beginners@perl.org

2001-07-31 Thread Christiam Camacho
Hello, Is the only difference between "and" and "&&" and "or" and "||" the precedence of the operators? In other words, how do these statements differ (e.g.: is any more efficient than the other?): open(FH,$in_file) or die "Couldn't open $in_file: $!" open(FH,$in_file) || die "Couldn't open

Re: DBI question ...

2001-07-31 Thread smoot
> Elie De Brauwer <[EMAIL PROTECTED]> said: > use DBI; > $dbh = BDI->connect('DBI:mysql:databasename:database:host','username','pass') > or die $DBI::errst; > > Now my problem is the following, in order to connect you have to know the > databasename but I want it to be that the users get a lis

Re: automatically naming scalars

2001-07-31 Thread Brett W. McCoy
On Tue, 31 Jul 2001, Ron Woodall wrote: > I'm trying to take a word from a file and naming a scalar with > that word. i.e. I find the word "target" in a file. I then need to > create $target = "xxx" and various other variables related to target. > Any suggestions? Create a hash containing

automatically naming scalars

2001-07-31 Thread Ron Woodall
Hi: I'm trying to take a word from a file and naming a scalar with that word. i.e. I find the word "target" in a file. I then need to create $target = "xxx" and various other variables related to target. Any suggestions? Thanks for the help. Ron -- To unsubscribe, e

Re: connecting to program

2001-07-31 Thread Brett W. McCoy
On Tue, 31 Jul 2001, Peter wrote: > i am trying to call a c program (main.exe) using these. > the c program resides in a different machine from the script. > > the comline scalar just adds on different parameters for the program. > > i feel like im doing something wrong with my system call. is

Re: cannot fix an error - "Bus error (core dumped) "

2001-07-31 Thread Ken
When I remove the incomplete elsif this runs fine on my system (with an added line before the while to read in @line @line = scalar();) What version of Perl are you running? Did you install it? Did it past all of the tests? Can you send us a complete sample program that gives this same error?

RE: Exec cgi

2001-07-31 Thread Bob Showalter
> -Original Message- > From: Tiago Almeida Spritzer [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 31, 2001 10:44 AM > To: [EMAIL PROTECTED] > Subject: Exec cgi > > > Hi, > > Anybody help me with this question? > I have two folders at the server, one with perl files > and

RE: Exec cgi

2001-07-31 Thread Bob Showalter
> -Original Message- > From: Tiago Almeida Spritzer [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 31, 2001 10:44 AM > To: [EMAIL PROTECTED] > Subject: Exec cgi > > > Hi, > > Anybody help me with this question? > I have two folders at the server, one with perl files > and

connecting to program

2001-07-31 Thread Peter
hi all, i am trying to call a c program (main.exe) using these. the c program resides in a different machine from the script. the comline scalar just adds on different parameters for the program. i feel like im doing something wrong with my system call. is a call to a url allowed? ---

module File::Copy

2001-07-31 Thread COLLINEAU Franck FTRD/DMI/TAM
Hello! I have a problem with this code: #!/usr/bin/perl -w use File::Copy; open (CONCAT,"lmi/concat.htm") || die "impossible d'ouvrir concat.htm: $!\n"; open (CONCAT2,">lmi/concat2.htm") || die "impossible d'ouvrir concat2.htm: $!\n"; while() { s///i; print (CONCAT2 $_); } close

RE: Splitting a string into a Array of Arrays

2001-07-31 Thread Mooney Christophe-CMOONEY1
You're actually very close. I would just change a couple of things. First of all, you don't need @data as well as @rows. $element is aliased to each element in the array as it loops, so you can re-assign right back into the same array when you split. This will cause the loop to independent of

RE: Security Question (follow-up question)

2001-07-31 Thread Bob Mangold
This is somewhat alarming to me because I hadn't realized this potential before, but is there an easy way to check what is being opened. Would using a -f() or -d() to verify that you were actually opening a file or directory do the trick? -Bob --- Mooney Christophe-CMOONEY1 <[EMAIL PROTECTED]> w

Splitting a string into a Array of Arrays

2001-07-31 Thread Will Muir
I know this is simpler then what I am making it but I am stumped. I used LWP::UserAgent to fetch some data from a web page, What I need to do is to load the data which I believe is just one long string that I got from calling content() into an array of arrays by splitting on "\n" and ",". Lik

Re: Security Question

2001-07-31 Thread Brett W. McCoy
On Tue, 31 Jul 2001, Customer Service wrote: > I was reading a reply to a question this morning that stated that the open() > call is a big security hole because someone could put in ";rm -rf ." as the > value for $email. > What does ";rm -rf ." do? Why is it so dangerous? rm -rf deletes every

RE: Security Question

2001-07-31 Thread Mooney Christophe-CMOONEY1
Actually, open is only a security hole if you allow the user to tell you what to open at the command line. i don't have the exact message in front of me, but my guess is that someone said something like: $_=; open(IN,"$_|"); In which case if the user entered 'rm -rf /', it would try to delete e

Exec cgi

2001-07-31 Thread Tiago Almeida Spritzer
Hi, Anybody help me with this question? I have two folders at the server, one with perl files and other with html files. I need that the page index.html execute perl file, and I know that this TAG do that . But I try and don't obtain any result. Regards, Tiago Almeida Spritzer IBM

RE: Security Question

2001-07-31 Thread Mooney Christophe-CMOONEY1
'rm -rf .' is a unix command that removes everything in the current direcotry PERMANENTLY and UNCONDITIONALLY -Original Message- From: Customer Service [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 9:44 AM To: Perl Beginners Subject: Security Question Dear Sirs, I first of all

Re: cannot fix an error - "Bus error (core dumped) "

2001-07-31 Thread Stephen P. Potter
Lightning flashed, thunder crashed and Narendran Kumaraguru Nathan whispered: | Now, the way I have implemented is below | foreach (@line) { | if ( $_ =~ /\.\./) { # if the input has two consecutive .'s | ($s, $e) = split /\.\./, $_; # split with the dots to get start and end | p

Security Question

2001-07-31 Thread Customer Service
Dear Sirs, I first of all wanted to apologize about sending so many redundant questions to the list. I wasn’t aware that my wife was downloading my mail also and I didn’t see all of your replies to previous questions. Won’t happen again ;-)) I was reading a reply to a question this morning that

Re: substitution

2001-07-31 Thread Stephen P. Potter
Lightning flashed, thunder crashed and COLLINEAU Franck FTRD/DMI/TAM whispered: | I have a file where there is a line whitch begans by the string "". | I would like to remove the string "" by nothing. | How can i do ? I'm pretty sure a question almost exactly like this was asked and answered yes

"multipart/form-data" Method "POST" to cgi script not working

2001-07-31 Thread mlists
Hello all, If anyone could shed some light on this I would be in there debt. I know what the BIG problem is...these scripts where written in perl5.004 and we have moved or are moving to 5.6.0, but I don't know where to start looking to fix the code so that is works with 5.6.0. Th

RE: check array element (HELP)

2001-07-31 Thread Bob Showalter
> -Original Message- > From: Mooney Christophe-CMOONEY1 [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 31, 2001 9:44 AM > To: [EMAIL PROTECTED] > Subject: RE: check array element (HELP) > > > I would probably do this, although i'm sure some smarty-pants > could come up with a one-lin

Re: How do I extract 2 elements....

2001-07-31 Thread Brett W. McCoy
On Tue, 31 Jul 2001, Santosh M Hulkund wrote: > Program. > #!/usr/bin/perl -w > @foo = qw ( s a n t o s h ) > >Now I want to store the 2nd and 5th element ( i.e. n and s ) from > the array foo to array fo. How do i do it ? > > @fo = $foo[ what do i type here]

WG: How do I extract 2 elements....

2001-07-31 Thread Alessandro Lenzen
Try this: @fo = @foo[2,5]; al -Ursprüngliche Nachricht- Von: Santosh M Hulkund [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 31. Juli 2001 16:02 An: [EMAIL PROTECTED] Betreff: How do I extract 2 elements Hi, I am new to perl, this is question is very silly and stupid. S

AW: simple

2001-07-31 Thread Alessandro Lenzen
What do you mean by "How can we disable the hyperlink?" al -Ursprüngliche Nachricht- Von: Rahul Garg [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 31. Juli 2001 15:24 An: [EMAIL PROTECTED] Betreff: simple Hello, How can we disable the hyperlink? Waiting for Reply, Thanx in advance, R

RE: How do I extract 2 elements....

2001-07-31 Thread Mooney Christophe-CMOONEY1
@fo=@foo[2,5]; ^ -Original Message- From: Santosh M Hulkund [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 9:02 AM To: [EMAIL PROTECTED] Subject: How do I extract 2 elements Hi, I am new to perl, this is question is very silly and stupid. So, Please spare me..

How do I extract 2 elements....

2001-07-31 Thread Santosh M Hulkund
Hi, I am new to perl, this is question is very silly and stupid. So, Please spare me. Program. #!/usr/bin/perl -w @foo = qw ( s a n t o s h ) Now I want to store the 2nd and 5th element ( i.e. n and s ) from the array foo to arra

zipping files with Active State Perl

2001-07-31 Thread Rich Fernandez
Does anyone know how to zip files with Perl on a windows platform? I have a couple of directories that I want to zip up and archive periodically. Thanks! richf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: check array element (HELP)

2001-07-31 Thread Mooney Christophe-CMOONEY1
I would probably do this, although i'm sure some smarty-pants could come up with a one-liner ;) sub repeated_elements { my %found_one; for (@_) { return 1 if $found_one{$_}++; } return 0; } if (repeated_elements @whatever) { # ther

simple

2001-07-31 Thread Rahul Garg
Hello, How can we disable the hyperlink? Waiting for Reply, Thanx in advance, Rahul

check array element (HELP)

2001-07-31 Thread GRANATA ROBERTA
--- Erhalten von ZBM.ZAGTA 089/32000-414 31-07-01 15.28 hi All, I have an array of 0...n elements. I want to check that each element of the array, must be different to each other. if it is so -> error, else -> go on. please, Can somebody help me,to write this code.? thank

  1   2   >