Try the ref() function.
if (ref($hash{$data}) eq 'HASH') {}
Hth. Sid.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of Pete Emerson
Sent: Thursday, December 06, 2001 9:03 AM
To: [EMAIL PROTECTED]
Subject: detecting a hash of hashes
Here is an exampl
Most unix systems have a program called dos2unix that does the same
thing.
% man dos2unix
% dos2unix sourcefile targetfile
Hth. Sid.
-Original Message-
From: Chris Spurgeon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 5:41 PM
To: 'Booher Timothy B 1stLt AFRL/MNAC'; [EM
ng
pt. nums.
Thanks,
Sid.
-----
Sidharth Malhotra
[EMAIL PROTECTED]
He didn't specify perl. So I guess this works.
-Original Message-
From: Bob Showalter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 1:37 PM
To: 'Zysman, Roiy'; '[EMAIL PROTECTED]'
Subject: RE: a beginners challenge
> -Original Message-
> From: Zysman, Roiy [mai
It will only match anything beginning with "daniel": "daniel",
"daniella", "danielson", "daniel smith"
If you specifically want to match only "daniel" try:
/^$user$/
Hth. Sid.
-Original Message-
From: Daniel Falkenberg [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 25, 2001 11
While were on this, I'm taking an intro to Data Structures class and
were learning all about the different sorting methods ... Insertsort,
mergesort etc. What kind of sorting method perl's sort() use?
Sid.
-Original Message-
From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]]
Sent: Th
$data is a reference to an array (kind of like a c pointer):
$data = \@somearray; # or
$data = [1, 2, 4, 7]; # there are many other ways to create an array
ref
When you say @$data, you dereference $data into array context because
shift requires arrays to work with:
my ($type) = shift
Porting to mod_perl is not exceptionally difficult. Once you have your
Apache/mp server up you can still run your scripts as regular cgi, and
"port" them to mod_perl one by one. When you "port" a script to
mod_perl, you simply need to put it into a directory where scripts are
being compiled with
I did this in one of my programs and it seemed to work just fine:
system("$command &");
Which, I believe, runs your command in the background and lets you return to
your program. (Please correct me if I am wrong). This will only work on
*nix systems.
Sid.
-Original Message-
From: Jona
yes, you can run it as a service:
apache -k install -n Apache
or simply run it in the background
apache -k start -n Apache
I think these should work.
Sid.
-Original Message-
From: Danny Reyna [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 06, 2001 9:58 PM
To: [EMAIL PROTECTED]
10 matches
Mail list logo