Re: map problems

2013-05-16 Thread Natxo Asenjo
On Thu, May 16, 2013 at 11:14 PM, Jim Gibson wrote: > The * in (.*) is "greedy", meaning the Perl regular expression engine will > try to match as much as possible in each string after it finds the > substring 'cn='. To make it "non-greedy", put a question mark after the > quantifier: s/^cn=(.*?)

Re: map problems

2013-05-16 Thread Peter Gordon
On Thu, 16 May 2013 21:57:55 +0200, Natxo Asenjo wrote: >in a ldap script where I get a list of values of a multivalued >attribute like this:   >@memberof = qw( cn=group1,cn=xxx,dc=domain,dc=tld >cn=group2,cn=xxx,d=domain,dc=tld etc etc) ;   >I would like to use map to convert the list of element

Re: map problems

2013-05-16 Thread timothy adigun
Hi Natxo, Please see my comment below: On Thu, May 16, 2013 at 8:57 PM, Natxo Asenjo wrote: > hi, > > in a ldap script where I get a list of values of a multivalued attribute > like this: > > @memberof = qw( cn=group1,cn=xxx,dc=domain,dc=tld > cn=group2,cn=xxx,d=domain,dc=tld etc etc) ; > Since

Re: map problems

2013-05-16 Thread Jim Gibson
On May 16, 2013, at 12:57 PM, Natxo Asenjo wrote: > hi, > > in a ldap script where I get a list of values of a multivalued attribute like > this: > > @memberof = qw( cn=group1,cn=xxx,dc=domain,dc=tld > cn=group2,cn=xxx,d=domain,dc=tld etc etc) ; > > I would like to use map to convert the lis

map problems

2013-05-16 Thread Natxo Asenjo
hi, in a ldap script where I get a list of values of a multivalued attribute like this: @memberof = qw( cn=group1,cn=xxx,dc=domain,dc=tld cn=group2,cn=xxx,d=domain,dc=tld etc etc) ; I would like to use map to convert the list of elements to @memberof = qw( group1 group2 group3 etc etc ) This is

Re: what's the problem with a system call

2013-05-16 Thread Manuel Reimer
Shlomi Fish wrote: What system() does (at least on UNIX-like OSes) is fork a child, call exec() with a new process and wait for the new child to terminate (plus some other stuff to get rid of misbehaviours). ... and if you call "system" with just one long string, then Perl opens the system def

Re: Spreadsheet::WriteExcel - multi-coloured text in cells

2013-05-16 Thread Dr.Ruud
On 15/05/2013 21:35, David Precious wrote: On Wed, 15 May 2013 10:34:02 +0100 Gary Stainburn wrote: Is it possible to write text cells where part of the string is highlighted in red? If so, how can I do it? I'm fairly sure the format of a cell applies to the whole content of that cell - can