Re: Difference between Perl,PHP and Python?

2008-11-13 Thread hrishy
Hi Siva PHP Mainly used for web development Perl very popular among sysadmins storage admin unix geeks has lot of libraries to do almost anything Python equally powerful as perl (Like perl has got many smart programmers) Perl and Python are very similar but with different philospies Perl philo

Difference between Perl,PHP and Python?

2008-11-13 Thread sivasakthi
No virus found in this outgoing message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.3/1786 - Release Date: 11/13/2008 6:01 PM -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: algorithm permute

2008-11-13 Thread Paul Lalli
On Nov 13, 10:26 am, [EMAIL PROTECTED] (Sharan Basappa) wrote: > Just an update. I have installed to a new location and can see the > following files > > /u/basappas/local/perl/Algorithm-Permute-0.06/ > Algorithm  Changes   Makefile.PL  Perm2.pl    Permute.o   pm_to_blib  typemap > bench      lib  

Re: algorithm permute

2008-11-13 Thread Dermot
2008/11/13 Sharan Basappa <[EMAIL PROTECTED]>: > Just an update. I have installed to a new location and can see the > following files > > /u/basappas/local/perl/Algorithm-Permute-0.06/ > Algorithm Changes Makefile.PL Perm2.plPermute.o pm_to_blib typemap > bench lib MANIFEST

Re: algorithm permute

2008-11-13 Thread Sharan Basappa
Just an update. I have installed to a new location and can see the following files /u/basappas/local/perl/Algorithm-Permute-0.06/ Algorithm Changes Makefile.PL Perm2.plPermute.o pm_to_blib typemap bench lib MANIFEST Permute.bs Permute.pm share blib Makefile META.

Re: search and replace

2008-11-13 Thread [EMAIL PROTECTED]
On Nov 12, 6:55 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > [EMAIL PROTECTED] wrote: > > Hi I am new to this group and to Perl. > > > I am having trouble with searching and replacing a pattern in a file > > and then > > copying to a new file.  I am trying to write an interactive program to > > do th

Re: search and replace

2008-11-13 Thread Mr. Shawn H. Corey
On Wed, 2008-11-12 at 13:00 -0800, [EMAIL PROTECTED] wrote: > I think I understand most of your suggestions but I'm not very clear > in this line: > > print $out $_;# in the while loop below. > > while (<$in>) { > s/\Q$search/$replace/g; > print $out $_; > > > What is the $_ variable? Th

Re: when to use variable vs. constant?

2008-11-13 Thread Jay Savage
On Thu, Nov 13, 2008 at 7:08 AM, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: > On Wed, 2008-11-12 at 21:17 -0500, Jay Savage wrote: >> the only thing you are using the pragma to control is >> whether the substitution happens at compile time or run time. In most >> cases, it doesn't make a hill of

Re: search and replace

2008-11-13 Thread [EMAIL PROTECTED]
On Nov 12, 6:55 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > [EMAIL PROTECTED] wrote: > > Hi I am new to this group and to Perl. > > > I am having trouble with searching and replacing a pattern in a file > > and then > > copying to a new file.  I am trying to write an interactive program to > > do th

Re: when to use variable vs. constant?

2008-11-13 Thread Mr. Shawn H. Corey
On Wed, 2008-11-12 at 21:17 -0500, Jay Savage wrote: > the only thing you are using the pragma to control is > whether the substitution happens at compile time or run time. In most > cases, it doesn't make a hill of beans. Yes, it does matter. If it happens at compile time, any error is reported

MySQL statement with REGEX / RLIKE containing a scalar variable possible?

2008-11-13 Thread Deviloper
I have a SQL-Statement with a Regular Expression and I want to use a scalar in that expression: (Looking for something like "$tool =~ m/\Q$x\E/" ) #Find tools with xx in the name: $dbh->prepare ("SELECT name FROM toolbox WHERE name REGEX '$x'"); #or $dbh->prepare ("SELECT name FROM toolbox