RE: [Perl-unix-users] Greedy Matching

2004-03-18 Thread Parvez Pathan
om >-BEGIN GEEK CODE BLOCK- >Version: 3.1 >GCS d? s a? C US+++ P$ L+> E--- W+$ N+ >o K w+ O- M> V-- PS@ PE Y+ PGP t 5++ X@ R@ tv+ >b+++@ DI D+ G e* h-- r- z* >--END GEEK CODE BLOCK-- >WARNING: All email sent to this address will be received by the

[Perl-unix-users] Greedy Matching

2004-03-17 Thread Parvez Pathan
Hi All, I am having a small doubt with the greedy pattern matching of Perl. We all know that Perl will try to match as many times as it can. But I am not getting the correct results. Please let me know if I am making a mistake. my $str = "/var/tmp/test/stuff"; ## replace 'test/stuff' to 't

[Perl-unix-users] Retrieving Perl hash values in javascript

2004-02-26 Thread Parvez Pathan
Hi All, I have a small CGI script which creates a small hash. I want to retrieve values from the hash in javascript. A snippet of my code is as follows: use CGI; my $q = new CGI; print $q->header; print qq[ ]; my %hash = qw ( ONE 1 TWO 2

[Perl-unix-users] [Fwd: Problem]

2003-06-02 Thread Parvez Pathan
Original Message Subject: Problem Date: Fri, 09 May 2003 18:51:59 +0530 From: Parvez Pathan <[EMAIL PROTECTED]> To: Perl-Unix-Users <[EMAIL PROTECTED]> Hi Everybody, I have a small question? Can I retrieve the key from the hash if I have the value?