Re: issue with perl map function

2011-12-03 Thread John W. Krahn
Alexandre Chapoutot wrote: Hi all, I think you should use grep instead of map in this partciluar case I disagree. I also don't think you should top-post your replies. John -- Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage t

Re: issue with perl map function

2011-12-03 Thread Dr.Ruud
On 2011-12-03 13:38, Binish A.R wrote: split(/\s+/, $_)[1] Why put all these extra characters in? ( split )[ 1 ] But if you happen to like extra characters, here are some: echo '1 2 3 4' |perl -anle 'do{s/\((.)\)/$1/g;1while s{([+-])\((...)\)}{$1$2}||s/\(\(([^{}]+)\)\)/($1)/||s/\((.x.)\

Re: issue with perl map function

2011-12-03 Thread Adams Paul
Sent from my LG phone Paul Johnson wrote: >On Fri, Dec 02, 2011 at 04:39:20AM -0500, sunita.prad...@emc.com wrote: >> Hi All >> >> My array @sympd_list has following lines : >> >> /dev/sdd 0BE0 07F:0 08C:D0 Unprotected N/Grp'd RW

Re: issue with perl map function

2011-12-03 Thread Binish A.R
__ From: "sunita.prad...@emc.com" To: beginners@perl.org Sent: Friday, December 2, 2011 3:09 PM Subject: issue with perl map function Hi All                 My  array  @sympd_list has  following lines : /dev/sdd              0BE0 07F:0 08C:D0  Unp

Re: issue with perl map function

2011-12-03 Thread Alexandre Chapoutot
Hi all, I think you should use grep instead of map in this partciluar case Regards Alex 2011/12/2 : > Hi All > >                My  array  @sympd_list has  following lines : > > /dev/sdd               0BE0 07F:0 08C:D0  Unprotected   N/Grp'd      RW     > 500 > /dev/sde  

Re: issue with perl map function

2011-12-02 Thread John W. Krahn
sunita.prad...@emc.com wrote: Hi All Hello, My array @sympd_list has following lines : /dev/sdd 0BE0 07F:0 08C:D0 Unprotected N/Grp'd RW 500 /dev/sde 0BE1 07F:0 07A:C0 Unprotected N/Grp'd RW 500 /dev/

Re: issue with perl map function

2011-12-02 Thread Rob Dixon
On 02/12/2011 11:20, timothy adigun wrote: Hi Sunita, On Fri, Dec 02, 2011 at 04:39:20AM -0500, sunita.prad...@emc.com wrote: Hi All My array @sympd_list has following lines : /dev/sdd 0BE0 07F:0 08C:D0 Unprotected N/Grp'd RW

Re: issue with perl map function

2011-12-02 Thread timothy adigun
Hi Sunita, On Fri, Dec 02, 2011 at 04:39:20AM -0500, sunita.prad...@emc.com wrote: > > Hi All > > > > My array @sympd_list has following lines : > > > > /dev/sdd 0BE0 07F:0 08C:D0 Unprotected N/Grp'd RW > 500 > > /dev/sde

Re: issue with perl map function

2011-12-02 Thread Paul Johnson
On Fri, Dec 02, 2011 at 04:39:20AM -0500, sunita.prad...@emc.com wrote: > Hi All > > My array @sympd_list has following lines : > > /dev/sdd 0BE0 07F:0 08C:D0 Unprotected N/Grp'd RW > 500 > /dev/sde 0BE1 07F:0 07A:C0

issue with perl map function

2011-12-02 Thread Sunita.Pradhan
Hi All My array @sympd_list has following lines : /dev/sdd 0BE0 07F:0 08C:D0 Unprotected N/Grp'd RW 500 /dev/sde 0BE1 07F:0 07A:C0 Unprotected N/Grp'd RW 500 /dev/sdf 0BE2 07F:0 08D:C0 Unprot