My Perl for Newbies lectures

2001-06-26 Thread Shlomi Fish
Domain. The lecture cover all the material from basic perl expressions and constructs up to and including regular expressions, references and the perl pipeline (sort, map, grep and friends). I would be happy if http://learn.perl.org/ will link to it or mirror it. Regards, Shlomi Fish

Re: VARIABLES

2004-06-18 Thread Shlomi Fish
with the input and produce the output. While Perl can be invoked to behave more like awk, it is not necessarily so. Regards, Shlomi Fish thanks again! Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams 614-566-4145

Re: Documentation on Usin with.......

2003-06-06 Thread Shlomi Fish
/chiq_chaq/chiq.pl?CGI_Getting_Started If not, you can consult one of these tutorials for learning Perl: http://perl-begin.berlios.de/tutorials/ Contact me if you need more help or information. Regards, Shlomi Fish

Re: Reading string 00 from a file

2003-06-03 Thread Shlomi Fish
happening? Perl has no problem reading a string like this. Are you sure you don't add it with 0 or do something else numeric in between? It works for me.tm Regards, Shlomi Fish Thx -- Shlomi Fish[EMAIL

Re: Perl - Web Development

2003-06-05 Thread Shlomi Fish
-publishing. Regards, Shlomi Fish PK -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif/ An apple a day will keep a doctor away. Two apples a day will keep two doctors away

Re: Changing UID/GID

2003-06-11 Thread Shlomi Fish
with use English for the effective user ID. 2. How can I change UID/GID the script is running under. I need to start script with root privilegies and when drop them to apache.apache. perldoc POSIX. (and search for setuid). Regards, Shlomi Fish Thanks in advance for help. Best regards

Re: scalar to list conversion

2003-06-28 Thread Shlomi Fish
, Shlomi Fish notice that I preserved the \n at the end, but I would settle for a solution that doesn't preserve it...thanx __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com

Re: file io and html

2003-06-28 Thread Shlomi Fish
(O); For more information refer here: http://vipe.technion.ac.il/~shlomif/lecture/Perl/Newbies/lecture2/files/ http://vipe.technion.ac.il/~shlomif/lecture/Perl/Newbies/lecture4/system-funcs/ perldoc perlopentut Regards, Shlomi Fish someone please help -fuzzy

Re: Perl Vs ...

2003-09-22 Thread Shlomi Fish
. http://www.paulgraham.com/onlisp.html Available for free download online. --- Regards, Shlomi Fish Paul Kraus -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technion.ac.il

Perl Beginners Portals

2003-09-29 Thread Shlomi Fish
but to set up my own site. What are your opinions about the two sites? How can we make learn.perl.org better? Regards, Shlomi Fish -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif

Re: Perl Beginners Portals

2003-10-02 Thread Shlomi Fish
should be prepared to answer as many of these questions as possible, times and again. That's also a reason in support of having several separate mailing lists: you get to hear the same old question less. Regards, Shlomi Fish [1] - and please - how hard it is to designate #perl

New Website for Perl Beginners: perlmeme.org

2005-10-02 Thread Shlomi Fish
feedback on the site, or can help in any other way, feel free to visit our developers' web-site: http://perlmeme-org.sourceforge.net/ Regards, Shlomi Fish - Shlomi Fish [EMAIL PROTECTED] Homepage:http

Re: New Website for Perl Beginners: perlmeme.org

2005-10-03 Thread Shlomi Fish
Hi Randal! Thank you very much for your commentary. Now for my comments. On Sunday 02 October 2005 14:17, Randal L. Schwartz wrote: Shlomi == Shlomi Fish [EMAIL PROTECTED] writes: Shlomi Hi good people, Shlomi there's a new web-site for Perl beginners - perlmeme.org - Shlomi http

Module for Country/Country Codes Lists

2004-02-04 Thread Shlomi Fish
Hi! My name is Shlomi Fish and I am a co-developer of the WWW::Form module: http://search.cpan.org/~bschmau/WWW-Form-1.13/ Benjamin Schmaus (WWW::Form's main developer) and I decided it would be a good idea for the module or an extension of it to provide common form controls like a country

Re: Module for Country/Country Codes Lists

2004-02-06 Thread Shlomi Fish
On Wed, 4 Feb 2004, Randy W. Sims wrote: On 2/4/2004 11:36 AM, Shlomi Fish wrote: Hi! My name is Shlomi Fish and I am a co-developer of the WWW::Form module: http://search.cpan.org/~bschmau/WWW-Form-1.13/ Benjamin Schmaus (WWW::Form's main developer) and I decided it would

Can anyone comment on Sams Teach Yourself Perl in 21 Days ?

2009-03-12 Thread Shlomi Fish
and mostly positive reviews. So any comments on this book will be welcome. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Original Riddles - http://www.shlomifish.org/puzzles/ God gave us

Re: Can anyone comment on Sams Teach Yourself Perl in 21 Days ?

2009-03-13 Thread Shlomi Fish
Hi! On Thursday 12 March 2009 18:52:05 Francisco Valladolid wrote: Hi On Thu, Mar 12, 2009 at 9:27 AM, Shlomi Fish shlo...@iglu.org.il wrote: Hi all! I've been tutoring someone in Perl 5, and as she wants to learn Perl from a paperware book, she borrowed the book Sams Teach Yourself

Re: Can anyone comment on Sams Teach Yourself Perl in 21 Days ?

2009-03-13 Thread Shlomi Fish
Hi Raymond, On Friday 13 March 2009 05:24:58 Raymond Wan wrote: Hi Shlomi, Shlomi Fish wrote: Hi all! I've been tutoring someone in Perl 5, and as she wants to learn Perl from a paperware book, she borrowed the book Sams Teach Yourself Perl in 21 Days from her workplace's library

Re: Can anyone comment on Sams Teach Yourself Perl in 21 Days?

2009-03-13 Thread Shlomi Fish
looked at assume what really needs, for a beginner, to be explained. Well, I'd rather not tell too much about her for confidentiality reasons. But thanks for your email. Regards, Shlomi Fish HTH, Safi Newman

Re: Can anyone comment on Sams Teach Yourself Perl in 21 Days ?

2009-03-14 Thread Shlomi Fish
On Saturday 14 March 2009 08:34:56 Raymond Wan wrote: Hi Shlomi, Shlomi Fish wrote: Yes, those or Beginning Perl ( http://www.perl.org/books/beginning-perl/ ) would be my choice too. I admit I haven't read them, but I'm judging them based on reputation. However, my point was that my

Re: recommendations for web/database applications

2009-07-28 Thread Shlomi Fish
Catalyst code as it is, and it's working after some trial and error. Catalyst seems better than CGI::App. 4. I haven't made use of the new Moose-y features of Catalyst, but they may be useful. Regards, Shlomi Fish -- - Shlomi

[ANN] Recent Additions to http://perl-begin.org/

2009-07-28 Thread Shlomi Fish
Beginners' Site and please recommend it to your friends. All content on Perl-Begin is available under the Creative Commons Attribution Licence. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Rethinking

Re: recommendations for web/database applications

2009-07-28 Thread Shlomi Fish
very well across DSL. I believe this page which I've written would be of relevance here: http://www.shlomifish.org/philosophy/computers/web/use-qmail-instead/ Regards, Shlomi Fish -- - Shlomi Fish http

Re: On using $_ in subroutines

2009-07-28 Thread Shlomi Fish
on it is prone to errors because so many Perl built-ins modify it. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Optimizing Code for Speed - http://xrl.us/begfgk God gave us two eyes and ten fingers so we

Re: Need some advice on learning perl

2009-08-10 Thread Shlomi Fish
help with. Other than that, you may wish to read some of Ingy's code, which tends to be very high-quality: * http://search.cpan.org/~ingy/ (Although you should probably avoid using Spiffy for OOP.) Regards, Shlomi Fish Thanks for your suggestions, if possible

Re: Need some advice on learning perl

2009-08-11 Thread Shlomi Fish
developers. Regards, Shlomi Fish Anyway, I'll go on my study. 2009/8/11 Ian pcs...@gmail.com Xu, I'm a Mainframe Systems Programmer. Assembler and JCL is the only languages I knew. When I decided to learn perl, I looked for some application I need in my daily routine

Improvements to http://perl-begin.org/

2009-08-13 Thread Shlomi Fish
friends - if you don't - let us know and we'll see what we can do. Unless mentioned otherwise, all the material on http://perl-begin.org/ is made available under the Creative Commons Attribution Licence (CC-by) for almost unlimited distribution and re-use. Regards, Shlomi Fish

Re: Coding best practices

2009-08-13 Thread Shlomi Fish
by inspiration from some discussion on Perl-Israel (first in a meeting and then on the mailing list). Lately, I've been mostly too lazy to use it and just inserted print's directly, but you may fare better with it. Regards, Shlomi Fish uri

Re: Which blowfish? Can it run from lib in user's account?

2009-08-18 Thread Shlomi Fish
it isn't enough. Do you have a C compiler (such as http://gcc.gnu.org/ ) on the server? If so, you can do the perl Makefile.PL ; make ; make test ; make install routine. For more information see: http://perl-begin.org/topics/cpan/ Regards, Shlomi Fish Do I also need /Net/SSH/Perl/Cipher

Re: Coding best practices

2009-08-19 Thread Shlomi Fish
On Friday 14 August 2009 16:18:38 Shawn H. Corey wrote: Shlomi Fish wrote: My recent impression of most Perl programmers has been the opposite - most of them have been too lazy or unmotivated to learn about the perl -d flag (or similar interactive debuggers), and are always using print's

Re: Procedural modules in an object-oriented project

2009-08-19 Thread Shlomi Fish
-interfaces-with-subexporter Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ First stop for Perl beginners - http://perl-begin.org/ God gave us two eyes and ten fingers so we will type five times

Re: Fwd: This code is not giving the required output.

2009-08-19 Thread Shlomi Fish
-Operators Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Best Introductory Programming Language - http://xrl.us/bjn84 God gave us two eyes and ten fingers so we will type five times as much as we read

Re: Load perl module and all its dependencies together locally

2009-08-19 Thread Shlomi Fish
development machine, but on production deployment it finds some other sub-modules missing! Please see this page: http://perl-begin.org/topics/cpan/ Regards, Shlomi Fish How to resolve this problem! Regards, Suhas

Re: PDF generation from a database!!

2009-08-30 Thread Shlomi Fish
And then convert that to PDF using a processor. Generating them should be easier than generating PDF, but the entire process may be slower. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ My

Re: PDF generation from a database!!

2009-09-01 Thread Shlomi Fish
Hi ficovh! On Tuesday 01 September 2009 10:20:43 ficovh wrote: Hi. I have installed the module in my laptop, and have a question. How can generate the xml files ? XML files? In which XML grammar? (XSL-FO, perhaps?) Or do you mean PDFs? Regards, Shlomi Fish

Re: Perl6

2009-09-01 Thread Shlomi Fish
Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ The Human Hacking Field Guide - http://shlom.in/hhfg God gave us two eyes and ten fingers so we will type five times as much as we read

Re: Perl's superior text parsing power

2009-09-02 Thread Shlomi Fish
of APL/J/etc. can be much worse than that. But it's not necessary that it will. I find Perl's expressive power useful in expressing my thoughts, and don't like languages that try to restrict in the name of readability, regularity, or any other higher cause. Regards, Shlomi Fish show me

Re: $| = 1 ???

2009-09-10 Thread Shlomi Fish
.) What it means is that after you do it, then print will output everything immediately, without buffering it beforehand. Hope it helps, Shlomi Fish Thanks -- - Shlomi Fish http://www.shlomifish.org/ Optimising Code

Re: text html from file to a scalar and mail

2009-09-12 Thread Shlomi Fish
/Freenode_Sharp_Perl_FAQ 2. http://faq.perl.org/ 3. http://perl-begin.org/ 4. http://www.perl.org/books/beginning-perl/ Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ The Case for File Swapping - http://shlom.in

Re: text html from file to a scalar and mail

2009-09-14 Thread Shlomi Fish
On Sunday 13 September 2009 02:43:52 Jenda Krynicky wrote: From: Shlomi Fish shlo...@iglu.org.il use FileHandle; my $signature = new FileHandle; $signature-open($signature_file)or die Could not open file\n; You should use IO::Handle instead of File::Handle (or IO::File

Re: Giving away my code

2009-09-15 Thread Shlomi Fish
/Comparison_of_open_source_software_hosting_facilities Steve Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ What Makes Software Apps High Quality - http://shlom.in/sw-quality Chuck Norris read the entire English

Re: Giving away my code

2009-09-15 Thread Shlomi Fish
On Tuesday 15 September 2009 09:06:29 Shlomi Fish wrote: In addition to what other people say, and other caveats apply (I am not a lawyer, etc.). [SNIP] Assuming you get a green light from the company that contracted you, you can host it somewhere like http://sourceforge.net/ , http

Re: Tell your lawyers [Was - Re: Out Of Memory]

2009-09-20 Thread Shlomi Fish
Fish -- - Shlomi Fish http://www.shlomifish.org/ The Human Hacking Field Guide - http://shlom.in/hhfg Chuck Norris read the entire English Wikipedia in 24 hours. Twice. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org

Re: Requesting peer review...

2009-09-21 Thread Shlomi Fish
how it does it. I want to know why should I call it and how I should use it. Finally, perhaps your synopsis should be longer and more meaningful. I hope I don't come up as too harsh. Regards, Shlomi Fish pmhttp://ipv6canada.com/Error.pm tests http://ipv6canada.com/Error.t pod

Re: Burnt Camel Club (WAS: Charter of perl.beginners)

2009-09-21 Thread Shlomi Fish
! Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Funny Anti-Terrorism Story - http://shlom.in/enemy Chuck Norris read the entire English Wikipedia in 24 hours. Twice. -- To unsubscribe, e-mail

Re: mbtomh in perl?

2009-09-23 Thread Shlomi Fish
sources in the Perl Email Project told me. It is large and complicated, but gets the job done. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ My Aphorisms - http://www.shlomifish.org/humour.html

Re: Using named params

2009-09-26 Thread Shlomi Fish
: my $captcha = $params{captcha}; my $input = $params{input}; - is a remnant from the olden days. Now to answer your question - you may wish to look at Params::Validate and similar modules: http://search.cpan.org/dist/Params-Validate/ Regards, Shlomi Fish if ( ! $captcha

Re: Change character code 160 to 32

2009-10-04 Thread Shlomi Fish
it doesn't is because \DDD uses octal digits - not decimal ones: http://en.wikipedia.org/wiki/Octal Regards, Shlomi Fish I get the digest version, so may not respond right away. Mike Flannigan -- - Shlomi Fish

Re: Tips and Tricks?

2009-10-04 Thread Shlomi Fish
, but that is an ongoing process that will take some time. Regards, Shlomi Fish Thanks Jason H. Owens -- - Shlomi Fish http://www.shlomifish.org/ Interview with Ben Collins-Sussman - http://shlom.in/sussman Chuck Norris read

Re: Perl Questions

2009-10-05 Thread Shlomi Fish
/Lama_%28dier%29 And here's a funny video of the Dutch comedy group the de Lama's: http://www.youtube.com/watch?v=63ymR74im40 (I don't speak Dutch, but it's still funny). Regards, Shlomi Fish Secondly, I am kinda having trouble assimilating all the perl information. I want to know

Re: tabular printing

2009-10-05 Thread Shlomi Fish
of perlform which has many design anti-patterns. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ The Human Hacking Field Guide - http://shlom.in/hhfg Chuck Norris read the entire English Wikipedia in 24 hours

Re: Array's

2009-10-05 Thread Shlomi Fish
do what you want. The = assignment overrides the entire variable. Regards, Shlomi Fish Am I mising something, or are these two things interchangable? Jason H. Owens -- - Shlomi Fish http://www.shlomifish.org

Re: yet another question

2009-10-07 Thread Shlomi Fish
code (or code in other programming languages), just that I also love writing and blogging. Regards, Shlomi Fish Any tips here would be appriciated. Jason H. Owens -- - Shlomi Fish http://www.shlomifish.org

Re: for output from other unix commands

2009-10-08 Thread Shlomi Fish
at perldoc -f format but that says its about pictures and doesn't appear to be intended to format text. Have you tried http://search.cpan.org/dist/Perl6-Form/ ? Or maybe: http://search.cpan.org/dist/Text-Tabs+Wrap/ Regards, Shlomi Fish

Re: question

2009-10-12 Thread Shlomi Fish
and understand (e.g: golfed Perl, obfuscated Perl), but most production Perl code, including the one you have given here is not that bad. (It will take time for me to understand what the algorithm in your code is doing, but that would be common to all languages). Regards, Shlomi Fish

Re: pcregrep match groups

2009-10-19 Thread Shlomi Fish
) Is there a way to do this with pcregrep? No idea, but there probably is with perl -e and similar http://perldoc.perl.org/perlrun.html flags. Regards, Shlomi Fish -- Sent from an iPhone owned by an iLoser. - Shlomi Fish http

Re: Convert Site Name to Dotted IP Address

2009-10-22 Thread Shlomi Fish
probably want a trailing \n to print a newline. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ The Case for File Swapping - http://shlom.in/file-swap Chuck Norris read the entire English Wikipedia in 24

Re: xml simple question

2009-10-23 Thread Shlomi Fish
, Shlomi Fish, who now maintains XML-RSS which has many XML-Simple'isms, despite the fact that it doesn't use it, and that some people want even more XML-Simple'isms to support the various brain-damaged RSS extensions that one can find in the wild

Re: split n characters into n chunks

2009-10-25 Thread Shlomi Fish
, loop through it and use a slice to join the elements. Why not use perldoc -f substr ( http://perldoc.perl.org/functions/substr.html ) in a loop? Alternatively one can use unpack but I'm not sure how well it would handle Unicode characters. Regards, Shlomi Fish

Re: AW: perl document

2009-10-26 Thread Shlomi Fish
or corrections for it would be welcome. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ The Human Hacking Field Guide - http://shlom.in/hhfg Chuck Norris read the entire English Wikipedia in 24 hours

Re: AW: compact my wordlist generator

2009-10-26 Thread Shlomi Fish
) are implemented on the process heap so they cannot overflow the process stack, unless one recursively uses binary Perl-XS routines with Perl callbacks (e.g: those in List::Util or List::MoreUtils). Regards, Shlomi Fish See below: my $result = ''; perm(0,2); sub perm($$){ my

Re: About the hash case insensitive ~~~

2009-10-27 Thread Shlomi Fish
. Regards, Shlomi Fish [snipped] -- - Shlomi Fish http://www.shlomifish.org/ What Makes Software Apps High Quality - http://shlom.in/sw-quality Chuck Norris read the entire English Wikipedia in 24 hours. Twice

Re: OOB and dispatch table

2009-10-31 Thread Shlomi Fish
/ (Same resource - only as multiple pages). # ...obj passed in implicitly as expected $find_commands{ $find_this }( $search_data ); This should be: {{{ $find_commands{$find_this}-($search_data) }}} Regards, Shlomi Fish

Re: Simple XML to XLS format

2009-10-31 Thread Shlomi Fish
-maintained and free-as-in-speech distribution of perl for Windows. If you can, please use Strawberry Perl instead of ActivePerl. See: http://win32.perl.org/wiki/index.php?title=Main_Page Regards, Shlomi Fish -- - Shlomi

Re: About kernel symlink

2009-10-31 Thread Shlomi Fish
you intend to send it to a Gentoo or Linux-specific mailing list? If so please resend this message there. Regards, Shlomi Fish [snipped] -- - Shlomi Fish http://www.shlomifish.org/ Original Riddles - http

Re: Learning Perl Student Workbook

2009-11-02 Thread Shlomi Fish
- http://shlom.in/closed-books ) Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ What does Zionism mean? - http://shlom.in/def-zionism Chuck Norris read the entire English Wikipedia in 24 hours. Twice

Re: the classic which is the fastest way to sort question

2009-11-09 Thread Shlomi Fish
something similar with or(sub { ... }, sub { ... }, sub { ... }, sub { ... }). Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Original Riddles - http://www.shlomifish.org/puzzles/ Chuck Norris read

Re: about signal

2009-11-18 Thread Shlomi Fish
operating systems, you need to reassign the signal every time it is called. So it's a good practice to include it. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Parody on The Fountainhead - http

Re: the question of one program

2009-11-19 Thread Shlomi Fish
open(FILE,$envir); This should better be: open my $file, , $envir or die $!; This script is horrible. Avoid it. Regards, Shlomi Fish while(FILE) { @array=split(/([A-Z]+(_|[A-Z])+\=.[^A-Z]+)/,$_); thanks

Re: Perl - Read and Write Multi-Language text (Scandanavian,German)

2009-11-26 Thread Shlomi Fish
a challenge. I am in a situation where I do not know where to start. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Parody on The Fountainhead - http://shlom.in/towtf Chuck Norris read the entire

Re: Perl - Read and Write Multi-Language text (Scandanavian,German)

2009-11-26 Thread Shlomi Fish
that for you. Do you need to guess the language of the document? I still don't understand exactly what you want to do. Regards, Shlomi Fish Your help much appreciated. Thanks regards CM -- - Shlomi Fish http

Re: Perl - Read and Write Multi-Language text (Scandanavian,German)

2009-11-27 Thread Shlomi Fish
is the fused AE in Danish) If I understand you correctly, then you can use the chr() built-in function: http://perldoc.perl.org/functions/chr.html Possibly with some regular expressions' patterns match. Regards, Shlomi Fish Hope this explanation was clear! Chandra

Re: dcc chat example

2009-11-27 Thread Shlomi Fish
be happy to help you out with bringing your bots into the modern era. Regards, Shlomi Fish Regards, Rob -- - Shlomi Fish http://www.shlomifish.org/ What does Zionism mean? - http://shlom.in/def-zionism Chuck

Re: Separating DB operations out of program code

2009-11-28 Thread Shlomi Fish
to them all and is incorrect. DBIx- Class however, may be abbreviated as DBIC. Regards, Shlomi Fish Dp. -- - Shlomi Fish http://www.shlomifish.org/ The Case for File Swapping - http://shlom.in/file-swap Chuck

Re: REGEX first occurence

2009-12-02 Thread Shlomi Fish
! at http://downloads.yahoo.com/ca/internetexplorer/ And the obligatory http://getfirefox.com/ . ;-) Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Freecell Solver - http://fc-solve.berlios.de/ Chuck

Re: I LOVE HASH(ES)!!! *:-D

2009-12-03 Thread Shlomi Fish
their main usage patterns. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Interview with Ben Collins-Sussman - http://shlom.in/sussman Chuck Norris read the entire English Wikipedia in 24 hours. Twice

Re: speed test

2009-12-03 Thread Shlomi Fish
, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Optimising Code for Speed - http://shlom.in/optimise Chuck Norris read the entire English Wikipedia in 24 hours. Twice. -- To unsubscribe, e-mail: beginners-unsubscr

Re: speed test

2009-12-03 Thread Shlomi Fish
++). Due to the fact they are generic and written from a general purpose in mind, they may incur a small run-time overhead, but I doubt it will break you in most cases. Regards, Shlomi Fish // Xiao lan -- - Shlomi Fish

Re: conditional index of arrays

2009-12-04 Thread Shlomi Fish
] Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/ways_to_do_it.html Chuck Norris read the entire English Wikipedia in 24 hours. Twice. -- To unsubscribe, e-mail

Re: Need to process Excel sheet through Perl

2009-12-04 Thread Shlomi Fish
://www.virtualbox.org/ for example). Regards, Shlomi Fish LG rene -- - Shlomi Fish http://www.shlomifish.org/ Freecell Solver - http://fc-solve.berlios.de/ Chuck Norris read the entire English Wikipedia in 24 hours

Re: REGEX first occurence

2009-12-04 Thread Shlomi Fish
and replace. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Rethinking CPAN - http://shlom.in/rethinking-cpan Chuck Norris read the entire English Wikipedia in 24 hours. Twice

Re: How much time my Perl script is taking

2009-12-05 Thread Shlomi Fish
it into a module which you load using use or the -M flag at the beginning, so you can re-use it any time. See the so-called phasers like BEGIN, END, etc. Just make sure you use Time::HiRes, which is core: http://search.cpan.org/dist/Time-HiRes/ Regards, Shlomi Fish Cheers, Parag

Re: basic issue - XSLT processing

2009-12-05 Thread Shlomi Fish
suitable mailing lists for getting help with XSLT: http://listserv.activestate.com/mailman/listinfo/perl-xml http://www.google.com/search?q=xslt%20mailing%20list I'm not saying it's off-topic here, just that you are more likely to get help this way. Regards, Shlomi Fish [Snipped Long

Re: Can I design a website using Perl

2009-12-06 Thread Shlomi Fish
is Parag... :) OP stands for original poster. It's Internet slang. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Original Riddles - http://www.shlomifish.org/puzzles/ Bzr is slower than

Re: learning perl scripting

2009-12-06 Thread Shlomi Fish
/ It contains links to many online resources and books. That put aside, you really should work on writing your English text better. While one can understand it, the style (punctuation, capitalisation, spelling, etc.) is horrible. Regards, Shlomi Fish

Re: learning perl scripting

2009-12-06 Thread Shlomi Fish
On Sunday 06 Dec 2009 13:10:58 Erez Schatz wrote: 2009/12/6 Shlomi Fish shlo...@iglu.org.il: Hi Agnello! That put aside, you really should work on writing your English text better. While one can understand it, the style (punctuation, capitalisation, spelling, etc.) is horrible

Re: how to tr this?

2009-12-07 Thread Shlomi Fish
may opt to use a hash for more complicated substitutions. Regards, Shlomi Fish Thanks. //Xiao lan -- - Shlomi Fish http://www.shlomifish.org/ Humanity - Parody of Modern Life - http://shlom.in/humanity Bzr

Re: could not execute psexec

2009-12-07 Thread Shlomi Fish
' . C:\\commands\\AutoIT\\ . \C:\\commands\\AutoIT\\sch.bat\; system($cmd) or die $!; It seems like you can use the list syntax of perldoc -f system here, which will save you a lot of problems. This whole code is very unreadable. Regards, Shlomi Fish --SNIP. PS: If i

Re: Eval scoping question

2009-12-08 Thread Shlomi Fish
would be safer in this case: __PACKAGE__-can(asub)-(@params); Perl is a symbolic language. :-) eval has some legitimate uses, though, but you should be very cautious with it. Regards, Shlomi Fish -- - Shlomi Fish

Re: Eval scoping question

2009-12-08 Thread 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 method

Re: Eval scoping question

2009-12-08 Thread Shlomi Fish
On Tuesday 08 Dec 2009 12:18:10 Jeff Pang wrote: 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

Re: Perl script to Diff 2 Excel sheets

2009-12-12 Thread Shlomi Fish
to look at: http://search.cpan.org/dist/Test-Differences/ and or some of its dependencies. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Optimising Code for Speed - http://shlom.in/optimise Bzr

Re: capture error - the better way?

2009-12-15 Thread Shlomi Fish
, but cannot really recommend because it is Black Magick and quirky. Regards, Shlomi Fish Thanks in advance. -- - Shlomi Fish http://www.shlomifish.org/ Stop Using MSIE - http://www.shlomifish.org/no-ie/ Bzr is slower

Re: capture error - the better way?

2009-12-15 Thread Shlomi Fish
such errors if you do perldoc -f require, perldoc -f do (for a filename), string eval , etc. at run-time, in which case perl 5 invokes its compiler to compile some code at run-time. But for run-time exceptions block eval { ... } should work just as well. Regards, Shlomi Fish

Re: capture error - the better way?

2009-12-15 Thread Shlomi Fish
On Tuesday 15 Dec 2009 15:53:28 Philip Potter wrote: 2009/12/15 Shlomi Fish shlo...@iglu.org.il: On Tuesday 15 Dec 2009 14:25:28 Xiao Lan (小兰) wrote: On Tue, Dec 15, 2009 at 7:50 PM, Xiao Lan (小兰) practicalp...@gmail.com wrote: I did have tried that, but this will get a runtime error

Re: capture error - the better way?

2009-12-16 Thread Shlomi Fish
On Tuesday 15 Dec 2009 17:14:25 Philip Potter wrote: 2009/12/15 Shlomi Fish shlo...@iglu.org.il: On Tuesday 15 Dec 2009 15:53:28 Philip Potter wrote: How can Illegal division by zero be a compile-time error? It seems clear to me that it's a run-time error, which the optimizer has (wrongly

Re: parsing template

2009-12-16 Thread Shlomi Fish
. * http://template-toolkit.org/ - very powerful and my personal favourite. There are many others, but these are the most popular ones. Please use one of those. Also see: http://www.shlomifish.org/humour/fortunes/sharp-perl.html#many-types-of-wheels Regards, Shlomi Fish

Re: characters encode

2009-12-16 Thread Shlomi Fish
for this and for all the before of your helps. // Xiao-Lan Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ The Case for File Swapping - http://shlom.in/file-swap Bzr is slower than Subversion in combination

Re: being smart about script structure

2009-12-16 Thread Shlomi Fish
a shallow copy ([ @{$array_ref} ]) or a deep copy - see perldoc Storable. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Star Trek: We, the Living Dead - http://shlom.in/st-wtld Bzr is slower than

Re: Can you please Help perl readdir multiple folders and files with pre same name

2009-12-17 Thread Shlomi Fish
. And make these variables lexicals - using my. ($plfilebase_type,$plfilebase_num,$plfilebase_name) = split (/\_/, $plfilebase); Why are you using /\_/ instead of /_/, or /\\_/? Regards, Shlomi Fish -- - Shlomi Fish

  1   2   3   4   5   6   7   8   9   10   >