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
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
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
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
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
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
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
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
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:
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
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?
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 =
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
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
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
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
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
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 /
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
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
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
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
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
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
@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
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
-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
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.
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
$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..??
also what is a perl script??? and how do u write one??
thanks
aalok
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
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
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
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
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
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 {
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
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
--- 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
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
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:
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
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
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
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
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
47 matches
Mail list logo