Re: Perl's superior text parsing power

2009-09-03 Thread Jenda Krynicky
From: "Shawn H. Corey" > Dave Tang wrote: > > I wanted to ask why is Perl, in comparison to other programming > > languages, so powerful in text processing? > > Undoubtedly, when it was written, Perl was the most powerful text > processing language available. This is no longer the case (thanks

Re: search replace saved to a variable

2009-09-03 Thread Jenda Krynicky
From: Noah Garrett Wallach > okay a step further - is there a way to make the following a one liner? > > (my $filename_cmd = $cmd[-1]) =~ s/\|//g; > $filename_cmd =~ s/\s+/\./g; > $filename_cmd =~ s/save.*//g; There's no point in making it a one liner. Plus anything may be writen