close dbh in the subroutine

2014-05-08 Thread Jeff Pang
Hi, I created a $dbh object in the main body, and pass it to a subroutine, then close the $dbh in the subroutine, does it  influence the $dbh in the main? $dbh = DBI-connect($data_source, $username, $auth, \%attr); my_func($dbh); $dbh-do(something); # will this broke? sub my_func { my

Re: system command not working in different versions

2012-08-08 Thread Jeff Pang
You might want to tell us what's the output for error. Some reasons include the file path, the permissions etc. I am developing a script in which I need to call another perl script. In one linux machine it is working and in the other machine it is not working. Ex:- system(./submit_now.pl

Re: Mail::Sender with SSL

2012-08-08 Thread Jeff Pang
Also avoid the MIME::Lite suggestion posted, as that module is deprecated and not recommended for new code due to the vagaries and odd bugs in it--also due to the fact that it's not actively maintained or developed any more and just receives an occasional bug fix. what's the better module to

Re: Mail::Sender with SSL

2012-08-07 Thread Jeff Pang
I have succeeded in sending mail to my SMTP server with Mail::Sender without SSL. But now I'm wondering how to do that with SSL, for example, GMail. After reading the doc, I set TLS_required to 1 when I'm calling Mail::Sender-new, but nohing works. I tried to debug the program but found nothing

Re: Test Mail

2012-08-03 Thread Jeff Pang
congratulation, you have got it~ Fri, 3 Aug 2012 14:02:25 +0530 от Anitha Sreejith Victor annperl2...@gmail.com: I want to subscribe to this perl forum thanks, Anitha -- Jeff Pang jeffp...@mail.ru

Thrift with Perl

2011-11-27 Thread Jeff Pang
Hi, Is there the good document or samples for running Thrift clients with Perl? The document on CPAN is too less. Thanks. -- Jeff Pang jeffp...@mail.ru

Re: best AJAX tool/module ?

2011-09-28 Thread Jeff Pang
there...   are there any other modules which would be easy (natural fit) to work with data returned in JASON?   please give your expert advice based on your insight into this.     thank you. -- Jeff Pang jeffp...@mail.ru

Re: Maintain Packages

2011-09-20 Thread Jeff Pang
. use a module like this: http://search.cpan.org/~xsawyerx/Module-Starter-1.58/lib/Module/Starter.pm it will do all the stuff for you. -- Jeff Pang jeffp...@mail.ru

Perl on Android

2011-09-15 Thread Jeff Pang
Has anyone used this perldroid, and how does it behave? http://code.google.com/p/perldroid/ Thanks. -- Jeff Pang jeffp...@mail.ru

Re: error print on closed file handle

2011-09-14 Thread Jeff Pang
be able to add a or die for capturing exceptions. open FH,,$outfile or die $!; print FH @sth; close FH or die $!; -- Jeff Pang jeffp...@mail.ru

Re[2]: running perl script from inside another script collecting output in array

2011-09-14 Thread Jeff Pang
as a module, then use or require this module in main script and call the methods in the module. -- Jeff Pang jeffp...@mail.ru

Re: Net::SMTP envelop from query

2011-09-13 Thread Jeff Pang
Mail OK data 354 End data with CRLF.CRLF from:f...@bar.com to:s...@126.com subject:a test message in the SMTP session above, the mail from: is the real sender ID, the from: in the data section is the header ID. -- Jeff Pang jeffp...@mail.ru

Re: tr/// and unicode

2011-09-08 Thread Jeff Pang
result: aeae why? thx matthias -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/ -- Jeff Pang jeffp...@mail.ru

Re: unsusbcribe

2011-09-08 Thread Jeff Pang
please send an empty message to beginners-unsubscr...@perl.org rather than sending it to the list. 08 сентября 2011, 14:32 от ganesh vignesh vigneshganes...@gmail.com: -- Jeff Pang jeffp...@mail.ru

Re: Good resources on CGI programming with Perl

2011-09-08 Thread Jeff Pang
book from there: http://perltraining.com.au/notes/perlcgi.pdf -- Jeff Pang jeffp...@mail.ru

Re: Moose

2011-09-07 Thread Jeff Pang
://www.modernperlbooks.com/mt/index.html -- Jeff Pang jeffp...@mail.ru

Re: [OT] Good Perl ISP's

2011-05-10 Thread Jeff Pang
two VPS, one is Linode, another is namecheap's. Or try Amoson AMS for a year free. -- Jeff Pang www.DNSbed.com -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Need help in fetching file from a folder in server and display.

2011-05-06 Thread Jeff Pang
from the browser. -- Jeff Pang www.DNSbed.com -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Perl function for password encryption and decryption

2011-05-06 Thread Jeff Pang
or similar and store them to a database. When user input their username and password from the web from to login, we re-encrypt the password and compare it to the database. The encryption function could be md5: use Digest::MD5 'md5_hex'; my $crypt = md5_hex($password); -- Jeff Pang www.DNSbed.com

Re: Perl function for password encryption and decryption

2011-05-06 Thread Jeff Pang
/ParseExcel.pm -- Jeff Pang www.DNSbed.com -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Help regular expression - string paring

2011-05-05 Thread Jeff Pang
is the the 21st and 22nd byte value. In the above examples, they are both 05. This could work: while(DATA) { my ($mat) = /^.{20}(.{2})/; print $mat,\n; } -- Jeff Pang www.DNSbed.com -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h

Re: Open existing HTML page from perl script

2011-05-05 Thread Jeff Pang
$page = $q-param(page_number); print $q-redirect(/$page.html); -- Jeff Pang www.DNSbed.com -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Naming subroutines WAS: special method name start with _

2011-04-28 Thread Jeff Pang
2011/4/28 Tim Lewis twle...@sc.rr.com: What is considered to be the proper way of naming internal subroutines? Example: my_special_subroutine or mySpecialSubroutine neither. But it could be: _my_special_subroutine -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional

Re: [OFF] OSS Perl Shopping Carts

2011-04-28 Thread Jeff Pang
2011/4/29 sono...@fannullone.us:        Are there any current open source Perl shopping carts out there?  The only carts I've been able to find are either ancient or are written in PHP. I don't know there is such one. You may post to mod_perl and Perl CGI mailing lists to get more info.

Re: Regular expression help !!

2011-04-27 Thread Jeff Pang
2011/4/27 jet speed speedj...@googlemail.com: Hi, Please could you advice, how can i write a regular expression for the line below to capture 0079 and 69729260057253303030373 0079 Not Visible             69729260057253303030373 This might help? $ perl -le ' $str=0079 Not

Re: special method name start with _

2011-04-27 Thread Jeff Pang
2011/4/28 heyi xiao xiaohey...@yahoo.com: Hello all, In the source code of some bioperl modules, I saw method names start with _. For instance, _print, in the following lines: $self-_print($buff); $self-_print(\n); These generally mean internal methods, but you could also call them from

Re: How does this work?

2011-04-27 Thread Jeff Pang
2011/4/27 Tim Lewis twle...@sc.rr.com: If needed, there is a good complete table of the ASCII values at http://www.asciitable.com/ Good resource. BTW, what do Hx and Oct in the table mean? And what's the difference between them? Regards. -- To unsubscribe, e-mail:

Re: special method name start with _

2011-04-27 Thread Jeff Pang
2011/4/28 Uri Guttman u...@stemsystems.com: the _ prefix is the only common way to mark a private OR protected method as perl doesn't directly provide any support for it. moose and other OO systems may support this. I may think Perl OO (not moose) doesn't have private or protected methods

Re: special method name start with _

2011-04-27 Thread Jeff Pang
2011/4/28 N n.pre...@gmail.com: Remove me from the mailing list please please send an empty mail to: beginners-unsubscr...@perl.org -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Alternatives to eval

2011-04-25 Thread Jeff Pang
2011/4/26 siegfr...@heintze.com: $s = $x = 23; eval $s; eval a string is considered a bad way. You may store and read the variables to and from a pure Perl data structure storage, like Tie::Hash. Regards. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional

Make Perl program released on windows

2011-04-08 Thread Jeff Pang
Hello, It's easy to write a program with Perl for dynamic DNS client on Windows. How to make this program as a standard product edition for Windows? I don't like to put some info like below in the README file. You should install Perl Interpreter (for example, ActivePerl) on the system. Thanks.

Re: Make Perl program released on windows

2011-04-08 Thread Jeff Pang
2011/4/8 Jeff Pang jeffp...@aol.com: I don't like to put some info like below in the README file. You should install Perl Interpreter (for example, ActivePerl) on the system. I mean many users don't know how to install the ActivePerl on their operation systems. They even don't know what's

Re: regular expression for special html characters

2011-02-03 Thread Jeff Pang
2011/2/2 Shlomit Afgin shlomit.af...@weizmann.ac.il: Hello, I tried to convert html special characters to their real character. For example, converting    #8221;      to       . I had the string $str = #8220; test #8221; ניסיון ; The string contain also Hebrew letters. Could Encode

what's the advantage of ORM?

2011-01-10 Thread Jeff Pang
I saw many companies require the employees to use DBIx::Class for work. I know this is a ORM system for database with Perl. What's the advantage of using ORM? Regards. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org

Re: advangtes of Perl on various languages

2011-01-07 Thread Jeff Pang
2011/1/6 Raymond Wan r@aist.go.jp: Brandon again (sorry, maybe should have written two replies) -- I was going to avoid this thread but while working today, I was reading another program's documentation and they gave a script to run their program in Python.  That's when I realized that

Re: Perl for windows Problem

2011-01-06 Thread Jeff Pang
That's  to say , is there some methods that I can use to write some perl scripts on Linux Server to check the Windows Server  System information ( CPU load , Memory and so on )? Net::SNMP is your friend. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands,

Re: perl training material and excercises for freshers

2011-01-03 Thread Jeff Pang
           I am planning to give Perl training to my juniors in my team. They are new to Perl. Could anyone please send me any Perl training materials with exercises, or links, which I can refer to? Sure. There are some really good PPTs about perl training made by a teacher Paul which was

Re: [OT] New Document: How to Start Contributing to or Using Open Source Software

2010-12-31 Thread jeff pang
2010/12/31 Raymond Wan r@aist.go.jp: If we leave it to just the people who contribute and help, then it's no longer a list for beginners.  It's for the contributors to post among themselves. Right. Anyway Happy New Year all Perl gurus and beginners! Regards. -- To unsubscribe, e-mail:

Re: [OT] The Happy, Happy, Feel Good Thread (WAS: New Document: How to Start Contributing to or Using Open Source Software)

2010-12-31 Thread jeff pang
2011/1/1 Shawn H Corey shawnhco...@gmail.com: Top posts don't bother me as much as those who don't trim the quotes. Other problems: Another problem: Shawn your signature message is too long to read. :) Regards. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional

Re: [OT] New Document: How to Start Contributing to or Using Open Source Software

2010-12-29 Thread jeff pang
2010/12/29 Erez Schatz moonb...@gmail.com: Since most of your posts are related to directing people to your site, I'd say we are about even. In more tightly-moderated lists you'd be banned for spamming. I agree with this point. Directing everyone to a personal site is always considered rude.

Re: Perl Books

2010-12-28 Thread jeff pang
2010/12/29 Andrew Migliazzo list.p...@gmail.com: I am a UNIX system administrator and I want to use Perl because it's standard since Solaris 8. Honestly I do not care much about MS Windows programing or CGIs, I am looking for tasks automation or sockets management. * Automating System

Re: Accessing file system from CGI

2010-11-19 Thread Jeff Pang
You may make the filesystem readable to httpd's running user like nobody. Perl has no way doing something more effective. 2010/11/18 Mike Martin m...@redtux.org.uk: Has anyone got any approaches that enable cgi scripts to access the host filesystem (readonly) I am working on a doc viewer app

Re: Perl vs CGI

2010-11-15 Thread Jeff Pang
2010/11/16 Saurabh Bhatnagar saurabh.b.bhatna...@oracle.com: Hello, This is my first post. I have perl code to strip the root folder in a path. ($shortpath = $fullpath) =~ s|/[^/]+||; You may want to try: File::Basename -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For

Re: About the perl $_ problem

2010-11-03 Thread Jeff Pang
于 2010-11-3 16:00, sync 写道: Hi, all : The followings are the two perl scripts: The first is printing the line before current line. the second is printing the current line. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org

Re: anonymous hash reference

2010-10-31 Thread Jeff Pang
于 2010-10-31 21:43, Thorsten Scherf 写道: Hi, I have an array with anonymous hash references like the following: $foo = [ { name = value, id = value, }, { name = value, id = value, } ]; Iterating through the hash references works with: foreach $item (@$foo) { do something with $item-name; }

Re: How to get the Pause ID

2010-09-29 Thread Jeff Pang
2010/9/30 Parag Kalra paragka...@gmail.com: Hi All, I have been trying to get Pause ID but seems like either the request is getting rejected or something is wrong in the way I am raising the request. Please send the message to the CPAN related mailing lists. http://lists.perl.org/all.html

Re: How do I recognize request from a mobile phone

2010-09-28 Thread Jeff Pang
You can differ the requests by user-agent. http://en.wikipedia.org/wiki/User_agent 2010/9/28 Ramprasad Prasad ramprasad...@gmail.com: I need to display  WAP version of pages  when accessed from mobile, else WEB version What is the best of doing this -- To unsubscribe, e-mail:

Re: IO::Socket operations

2010-09-28 Thread Jeff Pang
2010/9/28 Anand Parthiban h3lloan...@gmail.com: my $new_sock = $sock-accept(); while($new_sock) { print $_; } close($sock); ### -- Put them in a forever loop, like: while(1) { my $conn = $sock-accept(); print $conn; } etc. You may want to buy

Re: How do I recognize request from a mobile phone

2010-09-28 Thread Jeff Pang
2010/9/28 Ramprasad Prasad ramprasad...@gmail.com But which perl module do I use for recognizing the UA. I use Mobile::UserAgent  , but what if there is a new Mobile in the market. Will the useragent also be recognized This is decided by the client which sends the requests. If the request

Re: Parse data

2010-09-25 Thread Jeff Pang
2010/9/25 Santana paulito.sant...@gmail.com: Hi all, i'am newbie in PERL and i would liked your point of views/opinion for the following situation : i have a file with some lines that presents this format of information : Anne Gomez ; 5th Avenue ;;925 NY   ; 1978/10/11 ... the ;

Re: Good Perl Books

2010-09-24 Thread Jeff Pang
from PerlFAQ: Recommended books on (or mostly on) Perl follow. References Programming Perl by Larry Wall, Tom Christiansen, and Jon Orwant ISBN 0-596-00027-8 [3rd edition July 2000] http://www.oreilly.com/catalog/pperl3/

Re: automatic searching

2010-09-24 Thread Jeff Pang
In my file, each line has : ID (8 number) | many key words |key words again . I would like to know how to extact only key words part and automatic searching in website like google. for extracting: use split or regex. for googling: google has provided the SOAP API for programming. There is

Re: Good books for System , Network Admin tasks with perl

2010-09-22 Thread Jeff Pang
2010/9/22 Kammen van, Marco, Springer SBM NL marco.vankam...@springer.com: Network Administration http://www.amazon.com/Network-Programming-Perl-Lincoln-Stein/dp/02016157 11 Me second. Network Programming with Perl by Lincoln D. Stein is a great book! Vokern. -- To unsubscribe, e-mail:

Re: next in foreach loop

2010-08-13 Thread Jeff Pang
2010/8/13 Kryten kryte...@googlemail.com: Hi, Complete newbie. Is there any way to use next from within a foreach loop? Sure. $ perl -le ' for (1..10) { next if $_ == 5; print; } ' 1 2 3 4 6 7 8 9 10 -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail

Re: Digital signatures using MIME::Lite

2010-08-09 Thread Jeff Pang
-- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: ipv4 to ipv6 conversion

2010-08-04 Thread Jeff Pang
2010/8/5 Noah noah-l...@enabled.com: Hi there, is there a perl module that does a decent job converting an ipv4 address to an ipv6 address? Maybe this one? http://search.cpan.org/~manu/Net-IP-1.25/IP.pm -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners

Re: cgi sqlite error not able to write data in database

2010-07-24 Thread Jeff Pang
2010/7/24 perl perlatw...@gmail.com: This is the Error .. got from Apache ... DBD::SQLite::db do failed: unable to open database file at Specify the full path to the sqlite database file. You may know the absolute path of it, but Apache won't. -- Jeff Pang http://home.arcor.de/pangj

Re: Get variable name from a list

2010-07-24 Thread Jeff Pang
be a hash slice: @hash{$filename,$file_start,$file_time,$video_track,$audio_track,$quality,$sync} = (); see perldoc perldata: http://perldoc.perl.org/perldata.html -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail

Re: Get variable name from a list

2010-07-24 Thread Jeff Pang
, Please post the question to the list, not just to me, that will help you get better helps. -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: A new recipe as arrived

2010-07-24 Thread Jeff Pang
area. That sounds interesting. There is already the module for exception on CPAN: http://search.cpan.org/~pjordan/Exception-1.7/Exception.pm So what's the difference between them? Regards. -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org

Re: Compare file/dir size

2010-07-23 Thread Jeff Pang
purpose. Regards. -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: piping input to ssh session

2010-07-23 Thread Jeff Pang
running more than one command over the same connection. -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: META - Bounces from the list

2010-07-21 Thread Jeff Pang
recently changed my email address domain from googlemail.com to gmail. I can't now un-subscribe because the mailer program will not recognise my new address if I send an email to beginners-unsubscr...@perl.org and there not longer seems to be an admin page for the list. -- Jeff Pang http

Perl 6 soon?

2010-07-21 Thread Jeff Pang
I saw the words from a people's blog: After only a short ten year wait, a Perl 6 implementation is scheduled for release this month. Rakudo * (aka Rakudo Star) will be inaugurated on July 29th, 2010. Does this mean Perl 6 will be first released soon? Regards. -- Jeff Pang http://home.arcor.de

Re: Example code for storing picture in MySQL DB

2010-07-21 Thread Jeff Pang
. A reference: http://forums.mysql.com/read.php?20,17671,27914#msg-27914 For myself I never wanted to insert picture into mysql, there are other solutions instead. How about MogileFS? http://danga.com/mogilefs/ -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr

Re: MIME::Lite::TT::HTML - Default template

2010-07-20 Thread Jeff Pang
have the chance to specify the format for the message body, for example, is this a html message or a plain text message. So I may think this behavior decide which template your message should choose. -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr

Re: Perl stat script ... ???

2010-07-19 Thread Jeff Pang
-UX so am thinking a Perl script should be the way to go then instead so I can have it on any UNIX's flavours. I have been using File::Stat which may bring some helps to you. http://search.cpan.org/~makoto/File-Stat-0.01/Stat.pm -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e

Re: unary not?

2010-07-15 Thread Jeff Pang
programming, since !$a works fine enough. C:\perl -e $a=0;print !$a 1 C:\perl -e $a=1;print !$a -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Track user login status

2010-07-10 Thread Jeff Pang
-Original-Nachricht- Subject: Track user login status Date: Sun, 11 Jul 2010 03:33:27 +0200 From: Mimi Cafe mimic...@googlemail.com To: beginners@perl.org I am using Apache::Session to manage my cgi sessions, so to achieve this, I am thinking of sending a token with each page

Re: adding \n?

2010-07-06 Thread Jeff Pang
-Original-Nachricht- Subject: adding \n? Date: Wed, 07 Jul 2010 05:30:14 +0200 From: Noah noah-l...@enabled.com To: Perl Beginners beginners@perl.org Hi there, I want to add '\n' to each element of @contact_list. what are my options for doing so? Hi, Perl's map function

Re: What is the best way to parse a GPX (XML) file

2010-06-16 Thread Jeff Pang
2010/6/16 robert Key robert...@telkomsa.net: Hi I would like to parse  GPX file (XML) and insert certain data items into a MySQL database. There are mulitude of XML modules which can be used. These modules all build a hash from the data. Is this done because it is easy to find the the data

Re: Fork ssh

2010-06-16 Thread Jeff Pang
2010/6/17 Unknown User knowsuperunkn...@gmail.com: This works pretty well, but Since There is More than One Way to DO it, i wonder if anyone has another version that does not use fork? Just use the right one for you. Instead of processes, the Threads and Coro may also do that well.

Re: How to use the module: XML::Parser

2010-05-11 Thread Jeff Pang
2010/5/11 Parag Kalra paragka...@gmail.com: Hey All, I am trying to design some scripts using the module - XML::Parser To start  learning I have a very basic scenario. Suppose I have following XML file: root tag1My Tag1/tag1 tag2My Tag2/tag2 tag3My Tag3/tag3 /root I want to save the

Re: fork, read from child process and timeout

2010-05-11 Thread Jeff Pang
2010/5/11 Weizhong Dai weizhong@gmail.com: Hi all, - $pid = open(README, program arguments |)  or die Couldn't fork: $!\n; while (README) {    # ... } close(README) -- my problem is: I read from README, but if  waiting

Re: Developing Complex Event Processing (CEP) applications in perl

2010-05-11 Thread Jeff Pang
2010/5/11 Amit Saxena learn.tech...@gmail.com: Hello all, Please let me know if anybody has any idea on the development of Complex Event Processing (CEP) applications in perl. Maybe POE is your friend: http://poe.perl.org/ -- Tech support agency in China http://duxieweb.com/ -- To

Re: beginners Digest 4 May 2010 07:42:13 -0000 Issue 3941

2010-05-04 Thread Jeff Pang
2010/5/4 FRASER, KAREN R. karen.fra...@dfps.state.tx.us: How do I unsubscribe from this? I've sent at least three emails to beginners-digest-unsubscr...@perl.org following the instructions in If you want to quit from this list (perl beginners) you should write a message to:

Re: Interactive shell in Perl

2010-04-28 Thread Jeff Pang
. -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Perl executable

2010-04-28 Thread Jeff Pang
in the dark searching for the opening, can someone please shower light to this? Thanks perldoc -q 'hide the source' -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http

Re: UNIX permission bit calculator ... ???

2010-04-21 Thread Jeff Pang
. -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Local and global at the same time?

2010-04-20 Thread Jeff Pang
/Namespaces.html.en -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Is there any method to tell different between warning and errors?

2010-04-19 Thread Jeff Pang
in the file. Is there try this: system command arguments 2error.txt; -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: assign operator

2009-12-11 Thread Jeff Pang
Irfan Sayed: Hi All, Can somebody please tell me what is the difference between = and := sign in case of perl?? I never saw := in any perl code. Also I checked perlop and didn't find that a symbol. http://perldoc.perl.org/perlop.html -- Jeff Pang http://home.arcor.de/pangj

Re: Eval scoping question

2009-12-08 Thread Jeff Pang
warnings; our $abc = abc\n; sub asub { print $abc; } asub; Also you may want to know something about Perl's variable scope, see: http://perl.plover.com/FAQs/Namespaces.html.en -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional

Re: Eval scoping question

2009-12-08 Thread Jeff Pang
Shlomi Fish: Regarding using string eval - you can do the same using UNIVERSAL::can, which would be safer in this case: __PACKAGE__-can(asub)-(@params); or define a package and use AUTOLOAD method? -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners

Re: Eval scoping question

2009-12-08 Thread Jeff Pang
Shlomi Fish: On Tuesday 08 Dec 2009 11:46:59 Jeff Pang wrote: Shlomi Fish: Regarding using string eval - you can do the same using UNIVERSAL::can, which would be safer in this case: __PACKAGE__-can(asub)-(@params); or define a package and use AUTOLOAD method? How will the AUTOLOAD

Re: passing Hash to subroutine help please

2009-12-08 Thread Jeff Pang
login: $login $hostname\n; I don't see where you defined the variable of $login. Have you 'use strict' and 'use warnings'? -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http

Re: passing Hash to subroutine help please

2009-12-08 Thread Jeff Pang
John W. Krahn: Jeff Pang wrote: Noah: sub exiting { my ($hostname, %login) = @_; Passing arguments like this has no such problem. But you'd better pass the hash as a reference to the subroutine. exitint($hostname, \%login); sub exiting { my $hostname = shift; my %login

Re: Can I design a website using Perl

2009-12-05 Thread Jeff Pang
. And you may need to install the database driver, for example, you are using Mysql, then should install DBD::mysql for DBI. For other sources, try google Ovid's CGI Course, I remember there is such a free CGI course made by Ovid. -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e

Re: Connection pooling implementation in perl

2009-11-25 Thread Jeff Pang
Hi, If you're running a webprom under mod_perl, then Apache::DBI is maybe what you wanted. On Nov 26, 2009, Praveena Vittal praveena.vit...@sun.com wrote: Hi All, We would like to implement connection pooling for mysql database in Perl. Can anyone help in this? -- To unsubscribe,

Re: Re: Looking for advise on storring a complex array

2009-11-18 Thread Jeff Pang
For SQLite, just perl -MCPAN -e 'install DBD::SQLite', then use the general DBI to create and access SQLite database. you even don't need to install SQLite binary program. On Nov 18, 2009, Dermot paik...@googlemail.com wrote: 2009/11/18 Rob Coops rco...@gmail.com: On Mon, Nov 16, 2009 at

Re: Is unlink() supposed to provide an error message on failure?

2009-11-18 Thread Jeff Pang
So write the code like: unlink $file or die $!; This will throw up an error message and die. On Nov 19, 2009, David Christensen dpchr...@holgerdanske.com wrote: beginners: Is unlink() supposed to provide an error message on failure? The documentation does not say so:

Re: Perl CGI Incremental find

2009-11-17 Thread Jeff Pang
This is the stuff JavaScript will do, nothing about CGI, which is a server-end implement. On Nov 17, 2009, Dave Tang d.t...@imb.uq.edu.au wrote: Hi everybody, Is it possible to implement an incremental find* feature on a Perl CGI page? I'm running Apache2 with mod_perl on linux. For

Re: how do i ???

2009-11-17 Thread Jeff Pang
Hi, seems you're in un*x shell, so is a valid redirection for perl script's output. if you also want to redirect the stderr then do: perl my.pl out.txt 21 redirect STDOUT in perl script itself: open HD,,out.txt or die $!; open STDOUT,HD or die $!; HTH. On Nov 17, 2009, Subhashini

Re: Emailing all pdf files in a directory

2009-11-17 Thread Jeff Pang
This module's document is very few. I think you should write with @files = /path/*.pdf to get the full path for pdf files. After that you pass the anex argument when calling the function: my $status = Mail::SendEasy::send( smtp = 'localhost' , ... anex = \...@files, );

Re: Re: return {}-{'name'};

2009-11-14 Thread Jeff Pang
On Nov 15, 2009, Uri Guttman u...@stemsystems.com wrote: PK == Parag Kalra paragka...@gmail.com writes: and yes, that is declaring a constant. you can tell it is a hash as it is initialized to a hash reference. it makes little sense to me why you would declare such a beast as the reference

Re: execute in another terminal

2009-09-04 Thread Jeff Pang
it there? Is it the stuff perl's system() or `` does? system(...) or `...` will run another process but it's in the same terminal. I'm not sure why you want to open another terminal for tasks. :) -- Jeff Pang pa...@vfemail.net -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e

Re: perldoc modules

2009-09-04 Thread Jeff Pang
2009/9/5 Noah Garrett Wallach noah-l...@enabled.com: Hi there, this might be obvious but how can I find a list of all the perldoc modules? All standard modules including core and non-core modules have perldoc interface. For checking core modules:

Re: Perl's superior text parsing power

2009-09-02 Thread Jeff Pang
this speed comparison of script languages: http://mastrodonato.info/index.php/2009/08/comparison-script-languages-for-the-fractal-geometry/?lang=en -- Jeff Pang pa...@vfemail.net -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http

Re: PDF generation from a database!!

2009-09-01 Thread Jeff Pang
, etc. http://entropy.homelinux.org/axis/ ( click on 'reports' at the top ). Looks cool and can be useful.Thanks for the work. -- Jeff Pang pa...@vfemail.net -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: how to choose a threading or forking http server module from CPAN

2009-07-06 Thread Jeff Pang
2009/7/6 XUFENG xufeng...@sina.com: Hi,        I plan to implement a threading or forking http server to receive client request,after handling the requested url,it gives out new urls.        What is the better module to use? A perl module or httpd module? for perl module, could use CGI.pm

  1   2   3   4   5   6   7   8   9   >