Re: What is best way for learn programming?

2024-09-06 Thread Jeff Pang
/mastering-perl-2nd/9781449364946). These three are really nice books. I also like them. I also read this book (free PDF online): https://onyxneon.com/downloads/modern_perl_ebook.pdf -- regards, Jeff Pang -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail

Re: What is best way for learn programming?

2024-08-04 Thread Jeff Pang via beginners
l'. Isn’t the book Programming Perl by Larry? -- regards, Jeff Pang -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: What is best way for learn programming?

2024-07-31 Thread Jeff Pang via beginners
slow. -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄ -- regards, Jeff Pang -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Can use Perl and C in a program?

2024-07-26 Thread Jeff Pang via beginners
On 2024-07-27 01:11, William Torrez Corea wrote: How can I implement these two languages of programming in a program? You want to check the following library. https://metacpan.org/dist/Inline-C/view/lib/Inline/C.pod -- regards, Jeff Pang -- To unsubscribe, e-mail: beginners-unsubscr

regex matching statements

2024-06-18 Thread Jeff Peng via beginners
Hello list, are these statements the same in perl? $ perl -le '$_="abc";if (!/\w+\d+/){print "not matched"}' not matched $ perl -le '$_="abc";if ($_ !~ /\w+\d+/){print "not matched"}' not matched or which is the better one? Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org Fo

Re: Easiest Way in Perl to check Whether a Disk is Mounted

2024-06-01 Thread Jeff P via beginners
Of course, I can use system calls and call the unix mount or mountpoint applications but is there a proper perl way to do this since system calls are not as elegant? Thank you. How about this module from metacpan? https://metacpan.org/pod/Sys::Linux::Mount regards. -- To unsubscribe, e-m

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 $d

Re: Mail::Sender with SSL

2012-08-07 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 h

Re: system command not working in different versions

2012-08-07 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 $xx

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 : I want to subscribe to this perl forum thanks, Anitha -- Jeff Pang jeffp...@mail.ru

Re: perl cookbook?

2012-02-29 Thread Jeff Peng
On Wed, 29 Feb 2012 16:16:30 +0200, Brent Clark wrote: Hiya Im looking to buy perl cookbook. I see the second edition was released 2003. Before I go off and buy it, does anyone know if perl cookbook 3rd edition, is ever going to be published? IIRC the book "Perl by examples" has the 5th e

Re: Rsync doesnot work

2012-02-13 Thread Jeff Peng
于 2012-2-14 13:14, Punit Jain 写道: This works manually if I run this script however under crontab it doesnot. Any clue what could be the issue ? How about the environment variables? For example, you maybe have setup the value of RSYNC_PASSWORD in the shell, but the value becomes not effective

Re: Perl Module to parse any other Perl script/module to fetch stats about data-structures

2012-02-08 Thread Jeff Peng
于 2012-2-9 15:21, Parag Kalra 写道: By data-structures being used, I mean the data structures that are actually *declared* in the script. And is it possible to find at least the data-structures stats of the current script that is getting executed if no parser is available. For example if I hav

Re: unexpected results

2012-02-08 Thread Jeff Peng
于 2012-2-9 14:10, lina 写道: On Thu, Feb 9, 2012 at 1:44 PM, Jeff Peng wrote: > 于 2012-2-9 12:44, lina 写道: > >> $string =~ m/(\S+)(and|or)(\S+)/; > > > $string =~ m/(\S+)\s+(and|or)\s+(\S+)/; Wow, thanks how does that one not work as expected, I am reading brian

Re: unexpected results

2012-02-08 Thread Jeff Peng
于 2012-2-9 12:44, lina 写道: $string =~ m/(\S+)(and|or)(\S+)/; $string =~ m/(\S+)\s+(and|or)\s+(\S+)/; HTH. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Perl Module to parse any other Perl script/module to fetch stats about data-structures

2012-02-08 Thread Jeff Peng
es on CPAN under the namespace of Devel::* may help him. Jeff. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: how to understand shift?

2012-02-07 Thread Jeff Peng
于 2012-2-7 15:45, lina 写道: I am sorry, still don't get. $year = shift part Try with this code: use strict; my $month = "December"; my $year = "2007" ; header($month,$year); sub header { print '@_ is: ' . "@_\n"; my $month = shift ; print '@_ is: ' . "@_\n";

Re: how to understand shift?

2012-02-06 Thread Jeff Peng
于 2012-2-7 15:07, lina 写道: my $month = shift ; my $year = shift ; here after shift the $year becomes null? http://perldoc.perl.org/functions/shift.html after shift the @_ becomes null. $year is 2007. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For addit

Re: The Perl Programming Language

2012-01-28 Thread Jeff Peng
On Sun, 22 Jan 2012 13:47:26 +, Lívio Cipriano wrote: Hi, I'm new to Perl but old in other programming languages. Is there a equivalent book in Perl as to the The C Programming Language? Regards Lívio Cipriano http://backpan.perl.org/authors/id/Q/QU/QUONG/perlin20.html A guide to Perl 5

Re: Schwartzian Transform

2012-01-17 Thread Jeff Peng
于 2012-1-18 11:31, Chris Stinemetz 写道: Would someone kindly advise me in sorting this array: my @array = qw(c r v vr tr re c.p[1] c.p[3] c.p[2] c.p[4] c.p[7] c.p[6] c.p[5] c.p[8] c.t[1] c.t[3] c.t[2]); I only want to sort the elements that have a numeric value inside the braces so that all the

Re: How to merge multiple array elements

2012-01-15 Thread Jeff Peng
于 2012-1-16 1:18, Pradeep Patra 写道: It works and displays 1-12. But I need something different because i dont know the value of "n" beforehand. So I decided to use a for loop. I tried push but it did not work. I would appreciate any help to merge multiple array elements preferably not using any l

Re: Inserting a new data structure in a bless reference

2012-01-13 Thread Jeff Peng
于 2012-1-14 11:25, Parag Kalra 写道: use FooBar; my $obj = FooBar->new; Do something ... $obj->{'new_key'} = 'some_value' Now I am not sure if that is the correct way of inserting a new data structure into an already bless reference I don't think you should modify the blessed obj

Re: comparing arrays

2012-01-11 Thread Jeff Peng
Just from the subject, for comparing arrays, I have been using Array::Diff which works always fine for me. I have a script where I have captured the value on the left side of the "=" as the header for my table. Now I want to take the value on the right side of the "=" sign and populate a new r

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

problems implementing SOAP::WSLD service.

2011-10-28 Thread jeff
/envelope/";>soap:Server< /faultcode>Server was unable to process request. ---> Authentica tion Failed Best Regards, Jeff Zanzinger RealEstateCE.com ph:  888.895.8839 fax:  866.517.1406 http://RealEstateCE.com/  -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: best AJAX tool/module ?

2011-09-28 Thread Jeff Pang
ing else out 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
nce. > 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[2]: running perl script from inside another script & collecting output in array

2011-09-14 Thread Jeff Pang
lled script 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: error print on closed file handle

2011-09-14 Thread Jeff Pang
ot;@allrecords"; > close OUT_FH; >   You should always 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: Net::SMTP envelop from query

2011-09-13 Thread Jeff Pang
354 End data with . from: to: 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: 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: 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 : > > > -- Jeff Pang jeffp...@mail.ru

Re: tr/// and unicode

2011-09-08 Thread Jeff Pang
/"ae","oe"/; print $_."\n";' > > expected result: aeoe > actual 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: Moose

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

Re: perl process forking tutorial recommendation

2011-06-15 Thread Jeff Peng
And the book "Network programming with Perl" is a good book for Perl client/server development including the fork stuff. > -Original Message- > From: dery...@gmail.com > Sent: Wed, 15 Jun 2011 13:11:38 -0700 (PDT) > To: beginners@perl.org > Subject: Re: perl process forking tutorial recom

Re: [OT] Good Perl ISP's

2011-05-10 Thread Jeff Pang
using 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: Perl function for password encryption and decryption

2011-05-06 Thread Jeff Pang
eExcel.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: Perl function for password encryption and decryption

2011-05-06 Thread Jeff Pang
h md5 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); -- Je

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

2011-05-06 Thread Jeff Pang
equest them 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: Open existing HTML page from perl script

2011-05-05 Thread Jeff Pang
$q = CGI->new; my $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: Help regular expression - string paring

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

Re: [OFF] OSS Perl Shopping Carts

2011-04-28 Thread Jeff Pang
2011/4/29 : >        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. Regards. -- To unsubs

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

2011-04-28 Thread Jeff Pang
2011/4/28 Tim Lewis : > 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 commands, e-mail

Re: special method name start with "_"

2011-04-27 Thread Jeff Pang
2011/4/28 N : > 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: special method name start with "_"

2011-04-27 Thread Jeff Pang
2011/4/28 Uri Guttman : > > 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 as other languages

Re: How does this work?

2011-04-27 Thread Jeff Pang
2011/4/27 Tim Lewis : > 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: beginners-unsubscr...@perl.org For ad

Re: special method name start with "_"

2011-04-27 Thread Jeff Pang
2011/4/28 heyi xiao : > 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 external pa

Re: Regular expression help !!

2011-04-27 Thread Jeff Pang
2011/4/27 jet speed : > 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 Visible

Re: Alternatives to eval

2011-04-25 Thread Jeff Pang
2011/4/26 : > > > $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 commands, e-mail: begi

Re: Make Perl program released on windows

2011-04-07 Thread Jeff Pang
2011/4/8 Jeff Pang : > 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

Make Perl program released on windows

2011-04-07 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: regular expression for special html characters

2011-02-03 Thread Jeff Pang
2011/2/2 Shlomit Afgin : > > > Hello, > > I tried to convert html special characters to their real character. > For example, converting    ”      to     "   . > > I had the string > $str = "“ test ” ניסיון "; > The string contain also Hebrew letters. > Could Encode work on it? use Encode; $new =

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 http://learn.

Re: advangtes of Perl on various languages

2011-01-07 Thread Jeff Pang
2011/1/6 Raymond Wan : > > > 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 the recent p

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] 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 : > > 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 commands, e-mail: begi

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 : > > 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: beginners

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 : > 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. Regards. -- T

Re: Perl Books

2010-12-28 Thread jeff pang
2010/12/29 Andrew Migliazzo : > 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 Administration with P

Re: remove duplicate elements from an array

2010-12-18 Thread Jeff Peng
Original-Nachricht > Datum: Fri, 17 Dec 2010 20:07:33 -0800 > Von: David Christensen > > You should buy the Perl Cookbook: > > http://oreilly.com/catalog/9781565922433 > > does the cookbook have a new edition? I remember I have read it

Re: Real life usage

2010-12-18 Thread Jeff Peng
ular piece of your softwares' source code or > you use it as your main programming language? > My use with Perl: * system admin * web development with CGI/mod_perl * DBA * some socket programming Besides perl you may also want to master other languages for the real life, like C

Re: Linux Uptime

2010-12-16 Thread Jeff Peng
于 2010-12-17 11:29, Shawn H Corey 写道: Every "file" in it is a pipe that can be read using regular file handles. And I believe only Linux does this. Yep.Also the OP is asking exactly about linux. -- Jeff Peng jeffp...@gmx.net -- To unsubscribe, e-mail: beginners-unsubscr...@pe

Re: Linux Uptime

2010-12-16 Thread Jeff Peng
于 2010-12-17 9:32, Matt 写道: I have a perl script but I want to exit it if the uptime on the server is less then say an hour. Any idea how I would get uptime with perl? $ cat /proc/uptime 4205976.64 4017280.59 The first column is the host's uptime seconds. Jeff. -- To unsubscribe, e

Re: install a package on windows

2010-12-15 Thread Jeff Peng
于 2010-12-16 7:06, Sisyphus 写道: ppm install MinGW I think that gives you both the MinGW port of the gcc compiler and dmake (which is the make utility you'll be using ... not gmake). If you find that dmake is not installed by running 'ppm install MinGW', then run: ppm install dmake Once MinGW a

install a package on windows

2010-12-15 Thread Jeff Peng
Hi, I have intalled activeperl 5.10 on windows and try to install a perl package. But I can't find the package in activeperl's "perl package manager" though this package does exist in CPAN. Also my windows doesn't have gcc/gmake installed. So how to install this kind of package? Thanks. Regards.

Re: Array Question

2010-12-15 Thread Jeff Peng
于 2010-12-15 1:38, Jim Gibson 写道: or the File::Find module to find files without resorting to the use of separate processes and shell commands. Me second. File::Find is your friend. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.o

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 : > Has anyone got any approaches that enable cgi scripts to access the > host filesystem (readonly) > > I am working on a doc viewer app (intended for

Re: Perl vs CGI

2010-11-15 Thread Jeff Pang
2010/11/16 Saurabh Bhatnagar : > 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 additional commands, e-mail: b

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 http

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 remove (^M ^G ) characters

2010-10-28 Thread Jeff Peng
form where i can find what these characters are and their ascii values?..any sugges would be really helpful You get the files from windows to un*x? try the command 'dos2unix'. -- Jeff Peng http://nsbeta.info -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional c

Re: Time Subroutine

2010-10-26 Thread Jeff Peng
ration system's uptime then it's much difference from the current time. -- Jeff Peng http://nsbeta.info -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Please suggest a good book on perl

2010-10-23 Thread Jeff Peng
> Hey All, > > Just finished reading 'intermediate perl' Enjoyed it as much as I > enjoyed the book 'learning perl' > > Thanks Randal, Tom & All > > Please now suggest another must read nook on perl. > why not "network programming with Perl"? This book will give you much more knowledge than perl i

Re: Object introspection + adding method

2010-10-23 Thread Jeff Peng
> On Sat, Oct 23, 2010 at 07:52:50PM +0200, Shlomi Fish wrote: > > Just be sure you know what you are doing. Adding a method to somone > else's > class can be considered rude. See the NOTE in perldoc perlmodlib. > He/she is maybe coming from other language like Ruby. In ruby it's free to add me

Re: MySQL database entry delta report

2010-10-17 Thread Jeff Peng
statistics from it. -- Jeff Peng http://nsbeta.info -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: perl real life exercise

2010-10-15 Thread Jeff Peng
于 2010-10-15 15:02, Agnello George 写道: HI Is there any site or any book other than "learning perl" where i would get real life exercises on perl scripting. Thanks perl cookbook. -- Jeff Peng http://nsbeta.info -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For

Re: help on perlform

2010-10-08 Thread Jeff Peng
于 2010-10-7 16:13, Shlomi Fish 写道: > > In case you haven't read the book "Perl Best Practices" (which you should), > you should know that http://search.cpan.org/dist/Perl6-Form/ would be > preferable over the built-in perlform which has horrible behaviour. > Ah OK, in fact I used neither of the

Re: perl module to search for misspellings

2010-10-06 Thread Jeff Peng
> Hi there List members, > > I have millions of SQL records that I searching with lots of poorly > entered data and I am trying to match these records based on matching > text. > A database with well designed tables should be processing the data much faster than perl IMO. -- To unsubscribe, e-

Re: help on perlform

2010-10-06 Thread Jeff Peng
> Hi folks, > Can anyone please explain what is "perlform" and its > usage.I used google but i was not able to crack. Try "perldoc perlform". Cheers! -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl

Re: Urgent Request

2010-10-05 Thread Jeff Peng
> The method mentioned is to get the output while u are running the perl > files > at the shell prompt not in the code.. > if u want to save the log details after the perl files are processed then > use this function > > sub file_write { > $_file = shift; > $_data = shift; > open FILE,"

Re: Urgent Request

2010-10-05 Thread Jeff Peng
> You could use filehandle to save the output outcome. > > use strict; > open OUT, ">outfile.txt"; ## at the beggining > > and for instance: > print OUT $seq->id(),"\n"; > or use Perl's "select". but that requires the OP to modify the source code, which is maybe not what he/she want. Regards. -

Re: Urgent Request

2010-10-05 Thread Jeff Peng
> Sorry doesnt work. > > Error is : > > Can't locate object method "perl" in 'filename'... > what's the content of the script? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Urgent Request

2010-10-05 Thread Jeff Peng
> Hello, > > Can anyone please tell me how to save output (what we get after running a > perl script) as an external file? > run it under a unix shell? try: perl a.pl > a.txt 2>&1 save all the output of a.pl to a.txt. 2>&1 means to capture the script's error output also. -- To unsubscribe, e

Re: perl or python

2010-10-05 Thread Jeff Peng
> Hi > > Is it better to learn Perl or Python since i can manage only writing > simple bash shell scripts. > > Please suggest/guide. > Since you are coming from shell, Perl is better for the beginning. from wikipedia (http://en.wikipedia.org/wiki/Perl): Perl borrows features from other programmi

Re: perl vs Python

2010-10-05 Thread Jeff Peng
l's OO, well, maybe it's not that strong, but I just like it. Overall, if you have been mastering perl well, learning python is quick and easy, as well as learning ruby. Regards, Jeff. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: perl

2010-10-05 Thread Jeff Peng
>> On Mon, Oct 4, 2010 at 9:49 AM, sheikh numan iqbal > >wrote: >> >> > hi, >> > >> > i want to login and need help on perl... >> > In some nations "login" means "step into the door". So for learning perl you may go: http://learn.perl.org/ Good luck. -- To unsubscribe, e-mail: beginners-uns

Re: How to get the Pause ID

2010-09-29 Thread Jeff Pang
2010/9/30 Parag Kalra : > 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 -- To unsubscrib

Re: How do I recognize request from a mobile phone

2010-09-28 Thread Jeff Pang
equest sent by client has the User Agent header included, the module will most likely recognize it. Jeff. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: IO::Socket operations

2010-09-28 Thread Jeff Pang
nn>; } etc. You may want to buy the book "Network Programming with Perl" for any detail about socket programming. Jeff. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

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 : > 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: beginners-unsubscr...@perl.or

Re: Parse data

2010-09-25 Thread Jeff Pang
2010/9/25 Santana : > 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 ";" is the se

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 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: Good books for System , Network Admin tasks with perl

2010-09-22 Thread Jeff Pang
2010/9/22 Kammen van, Marco, Springer SBM NL : >>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: beginners-unsubscr...@per

Re: update bind via net::dns

2010-08-31 Thread Jeff Peng
.INT; >  secret mykeyishere; > }; > > inserted it into my script and run it. > I always get > "Update error code: REFUSED" > This is most likely a DNS updating problem rather than the perl problem. Please send the question to Bind's mailing list. https://lists.isc.org/mailma

Re: Perl modules

2010-08-19 Thread Jeff Peng
root/ local::lib is maybe what you want. -- Jeff Peng Web: http://home.arcor.de/pangj/ Blog: http://squidcn.spaces.live.com/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Opposite benchmark results between Linux and Windows

2010-08-14 Thread Jeff Peng
Perl_my_strftime in [util.c][0] if you want to check). > I ran your code against 5.12.1, 5.10.0, and 5.8.9 on OS X and got > Me also. Didn't get big difference among the three versions for that function. -- Jeff Peng Web: http://home.arcor.de/pangj/ Blog: http://squidcn.spaces.live.co

  1   2   3   4   5   6   7   8   9   10   >