[Q] Help on File Update?!

2002-04-03 Thread Bhanu Prakash
Greetings Perl Listers, I'm trying to write a program in which I will be updating an employee database( a flat file here)., with Employee Id as the key. For the sake of simplicity , assuming that the fields are like .. . Can somebody help me finding out how does the c

[Q] Unable to Retrieve Cookies.

2002-02-24 Thread Bhanu Prakash
method "value" on an undefined value" Any Help?! Thanks Bhanu. = Bhanu Prakash G V S __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

[Q] Exporting variables?

2002-02-24 Thread Bhanu Prakash
Perl Listers, Is there a way I can export the values of certain variables from this cgi to another? Cookies are one way of doing this, if I'm not wrong! Can somebody tell me how exactly do I implement this ? Thanks for the help Bhanu. = Bhanu Prakash

[Q]Validating Forms?!

2002-02-22 Thread Bhanu Prakash
page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Bhanu Prakash G V S __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Ol

[Q]Setting global variables.

2002-02-22 Thread Bhanu Prakash
$myvar.. Here, my script is showing value of $myvar as null. I wanted to use the same value of myvar which I had before submitting the form. } Am I missing something? Or should I set a global variable for myvar?! Thanks Bhanu. = Bhanu Prakash G V S __

[Q]How can I pass Perl variables into shell?

2002-02-22 Thread Bhanu Prakash
ork. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Bhanu Prakash G V S __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports

[Q]How can I pass Perl variables into Shell

2002-02-21 Thread Bhanu Prakash
Wags, Let me try to explain what I wanted to do with awk script. When the user enters some data in the form, I want to search for this data as key in a datafile and update the information next to that information with another field entered by user . e.g., my input file.. bhanu tclprogrammer w

[Q] How can I pass Perl variables into shell?

2002-02-21 Thread Bhanu Prakash
Wags, Didn't get you there?! Any examples?! which does similar thing?! Thanks Bhanu. The $1 and $2 come out of reqex with parens. Wags ;) -Original Message- From: Bhanu Prakash [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 23:05 To: [EMAIL PROTECTED] Su

[Q] How can I pass Perl variables into shell?

2002-02-21 Thread Bhanu Prakash
Hi, Can I not do something like... #!/usr/local/bin/perl use strict; my $myname='hi There'; system "ls","-la"; system "echo","$myname"; qx{awk '{ if ($myname==$1) { do something } else print $2,$1 }'}; My script is complaining about uninitialized variables.. I suspect it is talking about $1 an

Re:[Q]Convert tcl list

2002-02-21 Thread Bhanu Prakash
$MyId = 1; foreach ( @MyData ) { printf "%3d: %s\n", $MyId++, $_; } Output: 1: abc xyz nnn mmm 2: aaa bbb ccc ddd Wags ;) -Original Message- From: Bhanu Prakash [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 21:38 To: [EMAIL PROTECTED] Subject: [Q] Convert tcl

[Q] Convert tcl list

2002-02-21 Thread Bhanu Prakash
Hi All, I have a list tcl list dumped onto a data file which looks like mykey {{ abc xyz nnn mmm }} mykey2 {{ aaa bbb ccc ddd }},. I want to extract the information in the flower braces and put it into another data file. How easy / or difficult to implement this in perl? Can somebody h

[Q]File Handles.

2002-02-21 Thread Bhanu Prakash
Perl Gurus, Can somebody tell me what is the difference between the two , with some examples? open("|/usr/users//"); and open("/usr/users//"); Thanks for the response Bhanu. = Bhanu Prakash G V S __ Do You Yahoo!? Yahoo!

Compare values

2002-02-21 Thread Bhanu Prakash
Hi Perl Gurus Is there a way to compare the values in perl? something like.. my $user = remote_user() if ($user == $owner_of_page ) { do_something } else { do_something_else } Thanks Bhanu. __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 O

Re: Sending mail

2002-02-21 Thread Bhanu Prakash
al Message----- From: Bhanu Prakash [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 16:59 To: [EMAIL PROTECTED] Subject: Sending Mail Hi, I'm new to Perl and am trying to write some cgi programs in Perl. Currently I'm developing a tool in which , when a user submits a form, the i

RE: [Q] Validating Forms?!

2002-02-21 Thread Bhanu Prakash
o the form with highlights on what is wrong/missing. HTH John -Original Message----- From: Bhanu Prakash [mailto:[EMAIL PROTECTED]] Sent: 21 February 2002 10:59 To: [EMAIL PROTECTED] Subject: [Q] Validating Forms?! HI All, Is there a way to Validate the fields of a form? Say I have a te

[Q] Validating Forms?!

2002-02-21 Thread Bhanu Prakash
HI All, Is there a way to Validate the fields of a form? Say I have a text field, and I should show an error to the user if he does not enter anything while submitting the form? Thanks for the help Bhanu. = Bhanu Prakash G V S

Re: Sending Mail.

2002-02-21 Thread Bhanu Prakash
know, Chris Zampese. [EMAIL PROTECTED] - Original Message - From: "Johannes Franken" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 21, 2002 9:38 PM Subject: Re: Sending Mail > On Wed, Feb 20, 2002 at 08:58:41AM -0800, Bhanu Prakash wrote:

Sending Mail

2002-02-20 Thread Bhanu Prakash
which does soemthing similar to this? or can anybody give me some bare bone structure of how I should accomplish this? Thanks for the help Bhanu. ===== Bhanu Prakash G V S __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic