Standarized tests

2004-03-17 Thread Camilo Gonzalez
Are there any standarized tests one can take to measure one's Perl prowess? How much are they and where can I find them? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

OT: Re: Standarized tests

2004-03-17 Thread Wiggins d Anconia
Are there any standarized tests one can take to measure one's Perl prowess? How much are they and where can I find them? This comment is pretty off topic for a CGI specific list. It has been discussed a couple of times in the jobs-discuss list and the advocacy list (I think), particularly

Re: Standarized tests

2004-03-17 Thread Brad Lhotsky
Forgot to copy the group! - Forwarded message from Brad Lhotsky [EMAIL PROTECTED] - From: Brad Lhotsky [EMAIL PROTECTED] To: Camilo Gonzalez [EMAIL PROTECTED] Subject: Re: Standarized tests Date: Wed, 17 Mar 2004 11:40:24 -0500 User-Agent: Mutt/1.4i Message-ID: [EMAIL PROTECTED] Opening

changing system password

2004-03-17 Thread Andrew Gaffney
I'm designing a simplified user management interface, similar to Webmin's. Since I'm using mod_perl, I just allowed the 'apache' user to execute certain commands using sudo. I've written a command line version that works just fine: code #!/usr/bin/perl use Expect; my $user = shift; my

Re: changing system password

2004-03-17 Thread Paul Archer
My guess is that since you're running sudo, sudo itself is asking for a password *for the nobody/apache account*, where it's set up not to ask you for a password (which is bad mojo), or you already ran sudo once and you've got a valid ticket. Paul Archer 11:38am, Andrew Gaffney wrote: I'm

Re: changing system password

2004-03-17 Thread Andrew Gaffney
Paul Archer wrote: My guess is that since you're running sudo, sudo itself is asking for a password *for the nobody/apache account*, where it's set up not to ask you for a password (which is bad mojo), or you already ran sudo once and you've got a valid ticket. Well, I don't know why my script

handling multiple select with CGI

2004-03-17 Thread Andrew Gaffney
I have a Perl script which uses the CGI module which needs to be able to get all the selected items in a SELECT. I see that the request comes in as 'selectname=item1selectname=item2selectname=item3'. If I do '$p = $cgi-Vars', wouldn't I only get the last value? -- Andrew Gaffney Network

RE: handling multiple select with CGI

2004-03-17 Thread Charles K. Clarkson
Andrew Gaffney [mailto:[EMAIL PROTECTED] : : I have a Perl script which uses the CGI module which needs to : be able to get all the : selected items in a SELECT. I see that the request comes in as : 'selectname=item1selectname=item2selectname=item3'. If I do : '$p = $cgi-Vars', wouldn't : I

Re: handling multiple select with CGI

2004-03-17 Thread Wiggins d Anconia
I have a Perl script which uses the CGI module which needs to be able to get all the selected items in a SELECT. I see that the request comes in as 'selectname=item1selectname=item2selectname=item3'. If I do '$p = $cgi-Vars', wouldn't I only get the last value? From the CGI.pm docs:

Re: handling multiple select with CGI

2004-03-17 Thread Andrew Gaffney
Charles K. Clarkson wrote: Andrew Gaffney [mailto:[EMAIL PROTECTED] : : I have a Perl script which uses the CGI module which needs to : be able to get all the : selected items in a SELECT. I see that the request comes in as : 'selectname=item1selectname=item2selectname=item3'. If I do : '$p

Re: handling multiple select with CGI

2004-03-17 Thread Andrew Gaffney
Wiggins d Anconia wrote: I have a Perl script which uses the CGI module which needs to be able to get all the selected items in a SELECT. I see that the request comes in as 'selectname=item1selectname=item2selectname=item3'. If I do '$p = $cgi-Vars', wouldn't I only get the last value?

Re: handling multiple select with CGI

2004-03-17 Thread Randal L. Schwartz
Andrew == Andrew Gaffney [EMAIL PROTECTED] writes: Andrew I have a Perl script which uses the CGI module which needs to be able Andrew to get all the selected items in a SELECT. I see that the request Andrew comes in as 'selectname=item1selectname=item2selectname=item3'. If I Andrew do '$p =

PERL OLE Troubles

2004-03-17 Thread Hanousek, Roman
Hi All I am bit lost with Excel Perl OLE Automation. I have a spreadsheet that contains a number of sheets in it. The data sheet contains all the data and the request sheet contain a number of excel charts. The problem I have is that can't update the sourceData in the Chart 1 on the requests

Test::Harness weird failure

2004-03-17 Thread Claude
Hello, I tried to create a test suite file containing the following code: -- clip --- #! /usr/local/bin/perl use strict; use Test::Harness qw( runtests $verbose ); $verbose=1; my @AoC = ( t/00.pl ); my $len = @AoC; print 1..$len\n; runtests( @AoC ); -- clip --- The file

Re: Test::Harness weird failure

2004-03-17 Thread Paul Johnson
Claude said: Hello, I tried to create a test suite file containing the following code: -- clip --- #! /usr/local/bin/perl use strict; use Test::Harness qw( runtests $verbose ); $verbose=1; my @AoC = ( t/00.pl ); my $len = @AoC; print 1..$len\n; This line should be in

sorting multi dimensional array

2004-03-17 Thread N, Guruguhan \(GEAE, Foreign National, EACOE\)
Hi All, I have a multi dimensional array build like this $array[$i][$j]. This array has some 50 values and I would like to sort this in ascending order. Can somebody tell me how to do this? Thanks Regards Guruguhan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: REQUEST_METHOD

2004-03-17 Thread Gregg O'Donnell
Try this site for additional information http://httpd.apache.org/docs/howto/cgi.html#environmentvariables Mike Ni [EMAIL PROTECTED] wrote: Thanks for the resoponse, It was written by a person who left already. Now, I need to find out how his code work. Do you happen to know where I can find

Re: traps in perl

2004-03-17 Thread DBSMITH
does the $|=1; mean ignore buffered output? My goal is not to tell the program to sleep so perldoc -f sleep has nothing to do with my goal. My goal is to disallow users from entering keystrokes SIGNALs that can break then out of the program. thanks again! Derek B. Smith OhioHealth IT UNIX /

RE: sorting multi dimensional array

2004-03-17 Thread Charles K. Clarkson
N, Guruguhan (GEAE, Foreign National, EACOE) [EMAIL PROTECTED] wrote: : :I have a multi dimensional array built like this : $array[$i][$j]. This array has some 50 values and I would : like to sort this in ascending order. Can somebody tell me : how to do this? How do you want to

RE: sorting multi dimensional array

2004-03-17 Thread Ed Christian
N, Guruguhan (GEAE, Foreign National, EACOE) wrote: Hi All, I have a multi dimensional array build like this $array[$i][$j]. This array has some 50 values and I would like to sort this in ascending order. Can somebody tell me how to do this? Quick and easy (but certainly not

RE: lexis nexis search module or script?

2004-03-17 Thread Stuart White
Thanks. The description/tutorial I just read about it seems to confirm that. -stu --- Toby Stuart [EMAIL PROTECTED] wrote: WWW::Mechanize will do most if not all of what you need. -Original Message- From: Stuart White [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004

Re: Folder Clean-up

2004-03-17 Thread Randal L. Schwartz
Norman == Norman Zhang [EMAIL PROTECTED] writes: Norman Hi, Norman I've /share_folder with many user folders. Norman e.g., Norman /share_folder/user_a Norman /share_folder/user_b Norman ... Norman I would like to scan all user folders for files that are older than 30 Norman days and delete

Re: not getting the syntax

2004-03-17 Thread Jenda Krynicky
On Fri, 12 Mar 2004, R. Joseph Newton wrote: Charlotte Hee wrote: $byname{ Owen }{ PHONE } = '999-'; Should be: $byname{ Owen }-{ PHONE } = '999-'; are you using strict? The code above should cause an error, not just an uninitialized variable warning. You really should

Writing output of a Shell command directly to a file

2004-03-17 Thread tyohn
Hey Perl Guys and Gals, I have an issue that I need some assistance with (even just a push in the right direction should be enough). Note, these are actually in a small perl module and I do use strict and warnings, they just aren't present in my example here. I've got a simple backup routine

RE: Writing output of a Shell command directly to a file

2004-03-17 Thread Bakken, Luke
@in = ssh(1.1.1.1, tar cf - /home/$user | gzip) open(TEMP, /tmp/$user.tar.gz) or die Blargh!; print TEMP @in; close(TEMP); Can you do this in stages? Create tar file: ssh(1.1.1.1, tar cf - /home/$user | gzip -c | dd of=/tmp/foo.tgz) Use ftp or scp to get it to your backup machine. Delete

RE: Writing output of a Shell command directly to a file

2004-03-17 Thread tyohn
Luke, Nope, this was the exact thing we were trying to get away from. Suppose I don't have space to store that file on the host box. We're doing it in stages now and I really want to get away from that since it increases disk activity on the host box during a full backup. Considering these are

RE: Writing output of a Shell command directly to a file

2004-03-17 Thread tyohn
-Original Message- From: tyohn [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 1:00 PM To: [EMAIL PROTECTED] Subject: RE: Writing output of a Shell command directly to a file Luke, Sorry guys... didn't mean to top post, if I don't top post at work everyone looks at me

RE: Writing output of a Shell command directly to a file

2004-03-17 Thread Bakken, Luke
Luke, Nope, this was the exact thing we were trying to get away from. Suppose I don't have space to store that file on the host box. We're doing it in stages now and I really want to get away from that since it increases disk activity on the host box during a full backup.

Fw: traps in perl

2004-03-17 Thread Josimar Nunes de Oliveira
To Jayakumar Rajagopal: What did you say in these print? Please, translate the messages and the meaning of $SIG: $SIG{INT} = sub { print tamizh vaazhga\n: }; $SIG{USR1} = sub { print vennai\n; }; $SIG{TSTP} = sub { print poda maanga\n; }; Thanks, Josimar [EMAIL

RE: traps in perl

2004-03-17 Thread Jayakumar Rajagopal
$SIG{INT} = sub { print Don't interrupt me while I am interrupting [ ^C ignored ] : }; $SIG{USR1} = sub { print User has sent SIGUSR1 ; }; $SIG{TSTP} = sub { print [^Z pressed..ignored] \n; }; -Original Message- From: Josimar Nunes de Oliveira [mailto:[EMAIL PROTECTED] Sent:

what precisely does one need to know in perl to write a script or a test bench for a RTL code in verilog or vhdl..??

2004-03-17 Thread Shah, Aalok S
what precisely does one need to know in perl to write a script or a test bench for a RTL code in verilog or vhdl..?? also what is a perl script??? and how do u write one?? thanks aalok

Re: chown-ing symlink

2004-03-17 Thread Paul Johnson
On Mon, Mar 15, 2004 at 02:07:22PM +0100, Paul Johnson wrote: On Mon, Mar 15, 2004 at 11:32:47AM +, Ohad Ohad wrote: P3. What's the status of adding lchown to POSIX ?nbsp;/P I suppose it's just waiting for someone to do it. It doesn't look too complicated. If someone produces a

Re: what precisely does one need to know in perl to write a script or a test bench for a RTL code in verilog or vhdl..??

2004-03-17 Thread Paul Johnson
On Wed, Mar 17, 2004 at 12:43:38PM -0800, Shah, Aalok S wrote: what precisely does one need to know in perl to write a script or a test bench for a RTL code in verilog or vhdl..?? That would depend on where the script would fit into your verification process. Are you embedding perl in your

collecting data from a TL1 devices

2004-03-17 Thread Ravi Malghan
Hi: has anybody built a perl scripts to receive data from multiple TL1 devices and process them? Is there a module? Or any other suggestions on how this can be done. Thanks Ravi __ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam

RE: what precisely does one need to know in perl to write a script or a test bench for a RTL code in verilog or vhdl..??

2004-03-17 Thread Shah, Aalok S
hey thanks for the reply!! i actually want to use it as a wrapper around the simulations to check the o/p against some golden resultss awaiting ur response aalok -Original Message- From: Paul Johnson on behalf of Paul Johnson Sent: Wed 3/17/2004 1:41 PM

returning hashes, and arrays

2004-03-17 Thread Stuart White
I'm having trouble returning a hash from a subroutine, and an array from a different subroutine. Beginning Perl said I could return a list, I can't get it to work. Must the hash and array really be a reference to the hash and array in order to return them? Here's my subroutine: sub

AW: returning hashes, and arrays

2004-03-17 Thread B. Fongo
That should work provided you're returning only on list. It is much better to use reference when passing or retrieving more than one value. For instance: Retrieve the values from a sub as refereces. ($xRef, $yRef, $zRef) = example(); # my @x = @$x; my @y = @$y; my $z = $$z; sub example {

RE: returning hashes, and arrays

2004-03-17 Thread Charles K. Clarkson
Stuart White [EMAIL PROTECTED] wrote: : : I'm having trouble returning a hash from a subroutine, : and an array from a different subroutine. Beginning : Perl said I could return a list, I can't get it to : work. Must the hash and array really be a reference : to the hash and array in order to

how to print out http header

2004-03-17 Thread Mike Ni
Hey everyone, For debugging purpose, is there anyway to print out all the HTTP header information to the browser? I am setting up an development evnironment by talking to http://localhost/myapplication/, and I thought I would need to look up the HTTP infomation. By doing so, I can trace the

RE: returning hashes, and arrays

2004-03-17 Thread Stuart White
--- Charles K. Clarkson [EMAIL PROTECTED] wrote: Stuart White [EMAIL PROTECTED] wrote: : : I'm having trouble returning a hash from a subroutine, : and an array from a different subroutine. Beginning : Perl said I could return a list, I can't get it to : work. Must the hash and array

Re: AW: returning hashes, and arrays

2004-03-17 Thread Stuart White
It helps in that it seems to confirm that I was going about it the right way. It doesn't in that I can't get it to work for me. I'll go read some more documentation. By the way, what does AW: mean? --- B. Fongo [EMAIL PROTECTED] wrote: That should work provided you're returning only on

unixodbc + perl + access

2004-03-17 Thread Ricardo Pichler
Hi everyone, I'm try to make this work: perl + unixodbc + MSAccess but I can't Anybody make this work? Or others ways to read and write access file with perl? Sorry my bad english! Thanks in advance, Ricardo Pichler -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: returning hashes, and arrays

2004-03-17 Thread Randy W. Sims
On 3/17/2004 9:39 PM, Stuart White wrote: Yes, the goal is to learn perl, and to write a program that is big enough to be challenging, interesting, and uses most, if not all of the building blocks, (or at least what I'd call building blocks: scalars, arrays, hashes, reading files, control

Re: returning hashes, and arrays

2004-03-17 Thread Randy W. Sims
On 3/17/2004 8:16 PM, Stuart White wrote: I'm having trouble returning a hash from a subroutine, and an array from a different subroutine. Beginning Perl said I could return a list, I can't get it to work. Must the hash and array really be a reference to the hash and array in order to return

RE: returning hashes, and arrays

2004-03-17 Thread Charles K. Clarkson
Stuart White [EMAIL PROTECTED] wrote: : : sub ParseLineForHomeAndVisitors() : { : if ($_ : =~/(Spurs|Suns|Mavericks|Lakers|Clippers|Cavaliers| : Celtics|Pacers|Pistons|Wizards|Warriors|Bulls|Hawks| : Raptors|Magic|Heat|Kings|Rockets|Nuggets|Grizzlies| : Jazz|Knicks|Nets|Supersonics|'Trail

importing to excel file..

2004-03-17 Thread Hiremath Arun
hi Anyone help me in importing data from a text file in to a excel.. Arun -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

RE: returning hashes, and arrays

2004-03-17 Thread Charles K. Clarkson
Stuart White [EMAIL PROTECTED] wrote: : : I figured the small snippets, how to : print an array, how to split a string etc., was : better as it was more focused, and would apply : to not just the one example. That's a great way to break the program down, but over the years I have found that