Re: create user from csv

2010-02-22 Thread akabou
On 22 fév, 23:03, jimsgib...@gmail.com (Jim Gibson) wrote: > On 2/21/10 Sun  Feb 21, 2010  7:13 AM, "akabou" scribbled: > > > Hello, everybody > > > I have a csv file with firstname, lastname, group > > Group name or group number? > > > > > and need to create user and group if it doesn't exist. >

Re: create user from csv

2010-02-22 Thread akabou
On 22 fév, 23:03, jimsgib...@gmail.com (Jim Gibson) wrote: > On 2/21/10 Sun  Feb 21, 2010  7:13 AM, "akabou" scribbled: > > > Hello, everybody > > > I have a csv file with firstname, lastname, group > > Group name or group number? > > > > > and need to create user and group if it doesn't exist. >

Re: Shorthand for binary bitwise math?

2010-02-22 Thread Dave Tang
On Tue, 23 Feb 2010 11:23:23 +1000, Steve Bertrand wrote: I belong to several technical lists, and the de-facto standard is to Reply-All. Understood and thank you for your answer. -- Dave Tang -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beg

Re: Shorthand for binary bitwise math?

2010-02-22 Thread Steve Bertrand
On 2010.02.22 17:44, Uri Guttman wrote: >> "1" == 120 writes: > > >> "off list", as I don't like to clog everyone's email with my thank > >> you note. > >> > 1> It's generally considered very rude - but the world is full of rude > 1> arseholes. Many of them can be found on the per

Re: create user from csv

2010-02-22 Thread John W. Krahn
akabou wrote: Hello, everybody Bonsoir, I have a csv file with firstname, lastname, group and need to create user and group if it doesn't exist. But the problem is that i must not use useradd ou groupadd. That way lies madness. If you do not intend to use the tools provided then how do

Re: Shorthand for binary bitwise math?

2010-02-22 Thread Uri Guttman
> "1" == 120 writes: >> "off list", as I don't like to clog everyone's email with my thank >> you note. >> 1> It's generally considered very rude - but the world is full of rude 1> arseholes. Many of them can be found on the perl list. which perl list? there are many. do you incl

Re: how to $doc->createElement with XML::LibXML

2010-02-22 Thread Shlomi Fish
Hi. On Monday 22 Feb 2010 21:54:21 zacky az wrote: > Hi, > > i am trying to create a xml file with the following > > > > This is invalid XML - it has two top-level elements and XML must have exactly one. So it cannot be done. If you want you can do this: {{{ }}} Regards, S

how to $doc->createElement with XML::LibXML

2010-02-22 Thread zacky az
Hi, i am trying to create a xml file with the following i try the following code without any success, can someone help me to understand what i am dong wrong? use strict; use XML::LibXML; my $doc = XML::LibXML::Document->new( '1.0', 'UTF-8' ); my $root = $doc->createElementNS('', 'file');

Re: create user from csv

2010-02-22 Thread Jim Gibson
On 2/21/10 Sun Feb 21, 2010 7:13 AM, "akabou" scribbled: > Hello, everybody > > I have a csv file with firstname, lastname, group Group name or group number? > > and need to create user and group if it doesn't exist. > > But the problem is that i must not use useradd ou groupadd. > > I mu

Re: create user from csv

2010-02-22 Thread Shlomi Fish
Hi akabou! On Sunday 21 Feb 2010 17:13:10 akabou wrote: > Hello, everybody > > I have a csv file with firstname, lastname, group > > and need to create user and group if it doesn't exist. > Please read the guidelines at: http://perl.net.au/wiki/Freenode_Sharp_Perl_FAQ#How_should_I_write_my_co

create user from csv

2010-02-22 Thread akabou
Hello, everybody I have a csv file with firstname, lastname, group and need to create user and group if it doesn't exist. But the problem is that i must not use useradd ou groupadd. I must read user from csv, and then check if user exist, and if group exist. i've started like this, but i don't

Re: octal?!

2010-02-22 Thread Bryan R Harris
> On Fri, Feb 19, 2010 at 10:34 PM, Bryan R Harris > wrote: >> >> >>> Is there any way to keep perl's eval from interpreting numbers starting with "0" as octal? >>> >>> Stringify them ? >>> 2 * '012' is 24. >> >> Manually? >> >> We could have thousands of them.  How do I str

Re: octal?!

2010-02-22 Thread Jay Savage
On Fri, Feb 19, 2010 at 10:34 PM, Bryan R Harris wrote: > > >> >>> Is there any way to keep perl's eval from interpreting numbers starting >>> with >>> "0" as octal? >> >> Stringify them ? >> 2 * '012' is 24. > > Manually? > > We could have thousands of them.  How do I stringify them when they may

Re: Shorthand for binary bitwise math?

2010-02-22 Thread Rob Dixon
120 wrote: On Mon, 2010-02-22 at 11:06 +1000, Dave Tang wrote: On Fri, 19 Feb 2010 22:58:24 +1000, 120 wrote: Apologies for my error - if I may point out that sending 'off list' replies is also equally rude. May I ask about this netiquette? I usually thank people who have helped me "off l