Re: Programmatically check for syntax errors without compiling the code

2011-03-30 Thread Katie T
On Tue, Mar 29, 2011 at 7:04 AM, Magnus Woldrich wrote: > > "perl -c" will check your script without executing it. Katie -- CoderStack http://www.coderstack.co.uk/asp-jobs The Software Developer Job Board

Re: upgraded Macports broke working Perl environment

2011-03-21 Thread Katie T
What are the permissions on the directories being complained about? - maybe one of the directories in question ended up being owned by root so you as a user can no-longer change it. On Mon, Mar 21, 2011 at 9:00 PM, Rogelio wrote: > My Perl environment was working well on my Macbook, until I ran

Re: Using perl to automate add user on linux/freebsd systems

2011-03-18 Thread Katie T
On Thu, Mar 17, 2011 at 3:19 PM, Salvador Fandino wrote: > On 03/14/2011 07:59 PM, siegfr...@heintze.com wrote: > >> Does anyone know the perl API (presumably on CPAN) for >> useradd/userdel/usermod to automate the manipulation of users on FreeBSD >> systems? On Linux systems? >> thanks, >> Siegfr

Re: if else elsif

2011-03-18 Thread Katie T
It would help if you could clarify what you expect the following chunk of code to achieve: my @data = ( split /;/ )[31,32,38,39,261]; if (@data[39] =~ /15/) { 2 } else { 1 }

Re: New Document: "How to Start Contributing to or Using Open Source Software"

2010-12-27 Thread Katie T
On Mon, Dec 27, 2010 at 6:56 PM, Shlomi Fish wrote: > Hi all, > > I recently finished working on a new document titled "How to Start > Contributing to or Using Open Source Software" intended to get more people > involved in the world of free and open source software (FOSS). You can find it > here:

Re: Linux Uptime

2010-12-16 Thread Katie T
On Fri, Dec 17, 2010 at 3:21 AM, Katie T wrote: > On Fri, Dec 17, 2010 at 2:25 AM, Jeff Peng wrote: >> 于 2010-12-17 9:32, Matt 写道: >>> >>> I have a perl script but I want to exit it if the uptime on the server >>> is less then say an hour.  Any idea how I wou

Re: Linux Uptime

2010-12-16 Thread Katie T
On Fri, Dec 17, 2010 at 2:25 AM, Jeff Peng wrote: > 于 2010-12-17 9:32, Matt 写道: >> >> I have a perl script but I want to exit it if the uptime on the server >> is less then say an hour.  Any idea how I would get uptime with perl? > > $ cat /proc/uptime > 4205976.64 4017280.59 > > The first column