RE: detecting a hash of hashes

2001-12-06 Thread Sidharth Malhotra
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

RE: perl script to remove control M's

2001-12-05 Thread Sidharth Malhotra
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

floating point arithmetic

2001-11-28 Thread Sidharth Malhotra
ng pt. nums. Thanks, Sid. ----- Sidharth Malhotra [EMAIL PROTECTED]

RE: a beginners challenge

2001-11-28 Thread Sidharth Malhotra
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

RE: Simple question

2001-11-25 Thread Sidharth Malhotra
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

RE: What is "bubble sort"?

2001-11-15 Thread Sidharth Malhotra
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

RE: what is @$data

2001-11-04 Thread Sidharth Malhotra
$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

RE: Is ggoing to mod_perl easy?

2001-10-30 Thread Sidharth Malhotra
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

RE: system calls

2001-09-21 Thread Sidharth Malhotra
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

RE: HOW TO "HIDE" DOS CONSOLE : from apache webserver (using win98)

2001-09-06 Thread Sidharth Malhotra
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]