RE: one liner for removing string from an element of string array

2012-07-20 Thread Nemana, Satya
improved automatically since you love it. -Original Message- From: Shlomi Fish [mailto:shlo...@shlomifish.org] Sent: 13 July 2012 17:00 To: Nemana, Satya Cc: beginners@perl.org Subject: Re: one liner for removing string from an element of string array Hi Satya, On Fri, 13 Jul 2012 15:38:20

Re: one liner for removing string from an element of string array

2012-07-13 Thread Shawn H Corey
On 12-07-13 12:32 PM, Uri Guttman wrote: On 07/13/2012 12:27 PM, Shawn H Corey wrote: On 12-07-13 11:59 AM, Shlomi Fish wrote: See File::Basename -http://perldoc.perl.org/File/Basename.html . In the future, you may wish to use regular expressions for similar task There are a number of modules

Re: one liner for removing string from an element of string array

2012-07-13 Thread Shawn H Corey
On 12-07-13 12:32 PM, Uri Guttman wrote: On 07/13/2012 12:27 PM, Shawn H Corey wrote: On 12-07-13 11:59 AM, Shlomi Fish wrote: See File::Basename -http://perldoc.perl.org/File/Basename.html . In the future, you may wish to use regular expressions for similar task There are a number of modules

Re: one liner for removing string from an element of string array

2012-07-13 Thread Uri Guttman
On 07/13/2012 12:27 PM, Shawn H Corey wrote: On 12-07-13 11:59 AM, Shlomi Fish wrote: See File::Basename -http://perldoc.perl.org/File/Basename.html . In the future, you may wish to use regular expressions for similar task There are a number of modules installed with Perl that make working wit

Re: one liner for removing string from an element of string array

2012-07-13 Thread Shawn H Corey
On 12-07-13 11:59 AM, Shlomi Fish wrote: See File::Basename -http://perldoc.perl.org/File/Basename.html . In the future, you may wish to use regular expressions for similar task There are a number of modules installed with Perl that make working with file systems easier: perldoc File::Basen

Re: one liner for removing string from an element of string array

2012-07-13 Thread Shlomi Fish
Hi Satya, On Fri, 13 Jul 2012 15:38:20 + "Nemana, Satya" wrote: > Hi > > I have written a small program like this to just print file2 from the second > element of the array by removing the .template from the entry (the name file2 > can change and can be longer or shorter) > > use strict;

Re: one liner for removing string from an element of string array

2012-07-13 Thread Ron Bergin
Nemana, Satya wrote: > Hi > > I have written a small program like this to just print file2 from the > second element of the array by removing the .template from the entry (the > name file2 can change and can be longer or shorter) > > use strict; > use Data::Dumper; > use warnings; > > my @templates