RE: basic explanation on code

2004-02-14 Thread Eternius
"a = $a\n"; print "aa = $aa\n"; } Wiggins d'Anconia wrote: > Eternius wrote: > >> Joshua A. Gage wrote: [snip] >> >> use my >> extract from perldoc -f my : >> A "my" declares the listed variables to be local >>

Re: Local Scope Variables

2004-02-13 Thread Eternius
Joshua A. Gage wrote: Hi, I'm having a bit of trouble with using some local scope variables. I have a function where I want to define a variable, then use that variable in a sub function. That sounds like the text book definition for when to use a local scope variable. Below is the test script

Re: Script Kiddie issues

2004-02-09 Thread Eternius
lways the best solutions. regards Eternius -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: FW: special vars

2004-02-04 Thread Eternius
then I guess, I didn't understand it myself Wiggins D Anconia wrote: Nilay Puri wrote: if u use an OS like linux (which will not write things imediately to disc) this forces it to do so. That is misleading and not necessarily true. It tells Perl to unbuffer the I/O but not the OS. The OS de

Re: DBI realted queries

2004-02-04 Thread Eternius
Nilay Puri wrote: Hi all, $sth->{LongReadLen} = 3; #what's the statement doing ? And from where to find out what all parameters are available to statement handle ? my ($id_prod); my $sqlstmt = <<"EOM"; SELECT id_prod FROM product EOM my $dbh = DBI->connect('DBI:Oracle:' . $SID,

Re: FW: special vars

2004-02-04 Thread Eternius
Nilay Puri wrote: -Original Message- From: Nilay Puri, Noida Sent: Wednesday, February 04, 2004 11:37 AM To: Perl (E-mail) Subject: FW: special vars -Original Message- From: Nilay Puri, Noida Sent: Wednesday, February 04, 2004 11:32 AM To: Perl (E-mail) Subject: speci

Re: Sending mails

2004-02-04 Thread Eternius
Nilanjana Bhattacharya wrote: Hello everybody, I have two radio buttons in a form. I want - When any one clicks on button "A" a mail will be sent to "A" & when any one clicks on button "B" mail will be sent to button "B". In both the cases whether someone clicks on A or B I will receive a mail

Re: script problem

2004-02-03 Thread Eternius
Leon wrote: Hi everyone, I am created this script to send e-mails (see below). I get this error when I try to run it: Number found where operator expected at C:\scriptz\test\NEWSCR~1.CGI line 15, ne ar "The IP address for the interface that caused the event, or "0" (Might be a runaway multi-li

Re: What is this piesce of code doing ?

2004-02-03 Thread Eternius
n of the sub routine main sub main { -- --- } Regards, Nilay I suggest writing a simple one: #simple.pl #!/usr/bin/perl -w sub main{ return 1; } exit &main; #end and then try it: [EMAIL PROTECTED]:~> ./simple.pl && echo error error cheers Eternius -- To un

Re: uploading fiels from one unix server to another server usin perl cgi script.

2004-02-03 Thread Eternius
Nilay Puri wrote: No takers ?? :( Hi all, I have a task at hand , that of uplaoding file from server to another server and also pass 6 paramteres along with the file. Basically, I have to replicate the functionality provided by CFHTTP tag of COLD FUSION. I used LWP::UserAgent for the purpose. M