Re: login

2006-05-18 Thread Nenad
I use something like this sub provera_korisnika #Proveravam korisnicko ime i lozinku { $ime = $user-get_text; #this method get text from entry $lozinka = $pass-get_text; #this to $dbh = DBI-connect( DBI:mysql:evidencija,

hashref and hash

2006-05-18 Thread Ken Perl
I am writing the new method for class Empolyee which inherited from the base Person, the Person's new emthod expects a hash as its parameters, because it is a class using Class::DBI. The Employee's new method use hashref as its parameters, so how should I write the new method for class Employee?

Re: login

2006-05-18 Thread Nenad
Nenad wrote: I use something like this sub provera_korisnika #Proveravam korisnicko ime i lozinku { $ime = $user-get_text; #this method get text from entry $lozinka = $pass-get_text; #this to $dbh = DBI-connect( DBI:mysql:evidencija,

rebless another object

2006-05-18 Thread Ken Perl
hi, how to rebless another object in current package's constructor? could somebody give me an example? -- perl -e 'print unpack(u,62V5N\FME;G\!EFQ`9VUA:6PN8V]M\[EMAIL PROTECTED] )' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Print

2006-05-18 Thread Kaushal Shriyan
Hi All I have perl.chm file Learning Perl, How do i print all the chapters and all pages in the perl.chm file when i click on print, only one page gets selected and in the print dialog I can see only one page How do i select all the pages so that I can print the entire book Kaushal -- To

RE: login

2006-05-18 Thread Charles K. Clarkson
Nenad wrote: : I use something like this Humor me and do this exactly. Show the list what the result is. Change passwords where appropriate. I am curious about whether this part works. Let's make sure it does before we move on to checking for a valid user. use strict; use warnings; use DBI;

Any CPAN module similar to Winrunner

2006-05-18 Thread Shalaka
Hi List! I'm a beginner in Perl, i want to know if there is any module available which allows me automated testing of an application. I saw there's WWW::Mechanize for Web based applications, but the one i'll be testing is not web-based. Thanks in advance, Dhanashri

Insert value in existing record

2006-05-18 Thread Gerald Wheeler
Wondering how I can insert a value: abc| w/o the quotes) immediately after the third | (pipe character) in file xyz.txt. Each record within the file has 14 fields separated by the pipe character. Example: Before: one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|

Looking for strategy advice for perl based cgi script

2006-05-18 Thread Wijaya Edward
Dear expert, I have the intention to write a Perl based CGI script that does the following steps: 1. Take user input - including email - with a CGI script (mail_result.cgi). 2. Based on these input param, submit a long running Perl script (compute_price.pl) on the background 3. Email

Re: rebless another object

2006-05-18 Thread Tom Phoenix
On 5/18/06, Ken Perl [EMAIL PROTECTED] wrote: how to rebless another object in current package's constructor? could somebody give me an example? perlobj sez: Although a constructor can in theory re-bless a referenced object currently belonging to another class, this is almost certainly

Re: Looking for strategy advice for perl based cgi script

2006-05-18 Thread JupiterHost.Net
Wijaya Edward wrote: Dear expert, Hello, I have the intention to write a Perl based CGI script that does the following steps: 1. Take user input - including email - with a CGI script (mail_result.cgi). make sure they don't try to spoof the input and send mail to zillions of people

Re: Insert value in existing record

2006-05-18 Thread Tom Phoenix
On 5/18/06, Gerald Wheeler [EMAIL PROTECTED] wrote: Wondering how I can insert a value: abc| w/o the quotes) immediately after the third | (pipe character) in file xyz.txt. There's more than one way to do it. One way would be a substitution (s///). Another would be to use split and join:

RE: Any CPAN module similar to Winrunner

2006-05-18 Thread Timothy Johnson
What operating system are you using? -Original Message- From: Shalaka [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 2006 6:26 AM To: beginners@perl.org Subject: Any CPAN module similar to Winrunner Hi List! I'm a beginner in Perl, i want to know if there is any module available

Re: Print

2006-05-18 Thread David Romano
Hi Kaushal, On 5/18/06, Kaushal Shriyan wrote: I have perl.chm file Learning Perl, How do i print all the chapters and all pages in the perl.chm file How did you get the book in .chm format? I only know of it being available on paper and on safari.oreilly.com. It's a great book (I learned from

Re: Any CPAN module similar to Winrunner

2006-05-18 Thread Ken Foskey
On Thu, 2006-05-18 at 06:25 -0700, Shalaka wrote: Hi List! I'm a beginner in Perl, i want to know if there is any module available which allows me automated testing of an application. Test::More and the command `prove -r` I will attach a sample module and test to another email shortly...

Re: net::ftp with retry Big brother notifications from applications

2006-05-18 Thread Ken Foskey
On Sun, 2006-05-14 at 21:45 +1000, Ken Foskey wrote: I am trying to transfer across a link that is unreliable. (OK it is reliable but it does break occasionally.) I found the solution to this in an earlier email took the code and created a module for myself and here is my module and test

Re: rebless another object

2006-05-18 Thread Ken Perl
yes, this is helpful, so I won't re-bless any object now. On 5/18/06, Tom Phoenix [EMAIL PROTECTED] wrote: On 5/18/06, Ken Perl [EMAIL PROTECTED] wrote: how to rebless another object in current package's constructor? could somebody give me an example? perlobj sez: Although a constructor

RE: Insert value in existing record

2006-05-18 Thread Saboo, Nandakishore
Hi, As Tom Phoenix said there are many ways to do it, this is one of the way we can do it. +++ $string = one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|; $added = abc|; @tmp_array = split(/\|/,$string,4); for ($i=0;$i$#tmp_array;$i++) {

Re: Insert value in existing record

2006-05-18 Thread John W. Krahn
Saboo, Nandakishore wrote: Hi, Hello, As Tom Phoenix said there are many ways to do it, this is one of the way we can do it. +++ $string = one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|; $added = abc|; @tmp_array =

Better way to add one line at top of every file(one liner)

2006-05-18 Thread Ankur Gupta
perl -0777 -p -i -e 'print abcdefgh\n' *.ext or perl -0777 -p -i -e 's#^#abcdefgh\n#' *.ext or ??? --Ankur -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response