Re: Adding to @INC

2009-01-07 Thread Adam Witney
On 7 Jan 2009, at 15:24, Vic Norton wrote: I just installed Mac OS X 10.5, and I'm trying to get Perl back up to snuff. My current @INC contains only /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level

Re: Adding to @INC

2009-01-07 Thread Adam Witney
Try adding this to your ~/.profile export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8 OS X 10.5 (or at least my version of 10.5) uses ~/.bash_profile not ~/.profile for user overrides to the default profile (/etc/bashrc). If this is a multiuser machine and you want the other

Re: Adding to @INC

2009-01-07 Thread Adam Witney
On 7 Jan 2009, at 16:19, Chas. Owens wrote: On Wed, Jan 7, 2009 at 11:13, Adam Witney awit...@sgul.ac.uk wrote: Try adding this to your ~/.profile export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8 OS X 10.5 (or at least my version of 10.5) uses ~/.bash_profile

anyone know where i can get 10.3 Developers Tools?

2006-07-28 Thread Adam Witney
This may be slightly off topic, but I have just bought an iBook off eBay, and it comes with a fresh install of 10.3, however it doesn't have the Developers Tools installed. I will be using this for Perl development, so i need to be able to compile and install modules, do i need the whole

convert string to number?

2006-07-07 Thread Adam Witney
Hi, I have a problem where a number read from a file is being treated as a string by perl (I think!). I am using the module RSPerl which is an interface between Perl and the statistical language R. When i read a column of numbers from a file and pass it to the perl/R function i get an invalid

Re: Detecting file's line endings

2006-03-01 Thread Adam Witney
On 1/3/06 1:55 am, Peter N Lewis [EMAIL PROTECTED] wrote: At 17:25 + 28/2/06, Adam Witney wrote: Does this work on all platforms? When I try it it works fine on OSX/Linux with MAC/DOS/UNIX line endings, but fails (reads the whole file) when reading DOS line endings on WinXP... Here is my

Re: Detecting file's line endings

2006-02-28 Thread Adam Witney
At 15:15 + 22/12/05, James Harvard wrote: I'm trying to detect a file's line endings (\r\n for DOS, \r for Mac and \n for Unix as I'm sure y'all know). Is there any easy way to do this? use Fcntl; sub get_line_ending_for_file { my( $file ) = @_; my $fh; sysopen( $fh,

Using PerlMagick to get TIFF header information

2006-02-24 Thread Adam Witney
Hi, I am using PerlMagick to parse a TIFF file as I need to extract some information from the header section. I can get Tags like Make and Model, but I need to get some of the others (specifically Host Computer) The information can be extracted using ImageMagick's identify -verbose, but I

Re: Using PerlMagick to get TIFF header information

2006-02-24 Thread Adam Witney
' for 'set' and 'get' inwww.imagemagic.org/script/perl- magic.php which might be helpful. HTH Alan Fry On 23 Feb 2006, at 23:17, Adam Witney wrote: Hi, I am using PerlMagick to parse a TIFF file as I need to extract some information from the header section. I can get Tags like Make

Generating executables for macosx and windows from perl scripts

2005-08-24 Thread Adam Witney
Hi, I develop my perl scripts on OSX but I need to be able to generate executables for both OSX as well as windows. They won't need any graphical stuff, just a double clickable file that will do its stuff. Any ideas on what's the easiest way of doing this? Thanks for any help Adam -- This

Getting current directory of script after packaging with par

2005-08-24 Thread Adam Witney
Hi, Following up from my previous message, I am now using PAR. The problem is when I package an executable the current working directory changes: #! /usr/local/bin/perl -w use strict; use Cwd; print \nCurrent directory = .cwd.\n; When I run this from the command line, the result is the path

Installing and running camelbones

2004-06-09 Thread Adam Witney
Hi, I have just downloaded Camelbones 0.2.3 and am having a stab at using it. (on OSX 10.3.4 Firstly, I have upgraded my perl to 5.8.4, so the instructions say to build the Camelbones frameworks. However, it tells me to edit GNUmakefile.perl, which I can't find anywhere... Even though I did

Re: Installing and running camelbones... SOLVED

2004-06-09 Thread Adam Witney
Sorry, I jumped the gun with my question, realised I had to find the source tarball in Developer/Source, and compile in there. I can now build for Deployment, but not for Development (although I don't really know the difference!) Thanks adam Hi, I have just downloaded Camelbones 0.2.3 and am

Generating a temp file in a web app

2004-01-23 Thread Adam Witney
Hi all, This is probably not a mac specific perl problem, but I have a web app that fires off a perl script which generates a temporary pdf file and then emails it to the user. I have been using this syntax: my $temp_pdf = /tmp/reg_form$$.pdf; to name the temporary pdf file... Is this a safe

Ordering keys in a hash

2003-08-14 Thread Adam Witney
Hi, I have a hash with keys of the format sar0011_4 sar0203_3 sar0050_5 sar2001_1 sar0002_9 And I would like to generate a list ordered by the \d\d\d\d bit in the middle. I have this from the perl cookbook my @keys = sort {criterion()} keys(%gene_pool); but I don't really know how to approach

Getting size of IMAP mailbox

2003-05-27 Thread Adam Witney
Our sysadmins have decided to put a quota on the size of our email mailboxes. They have implemented a 'function' to warn the user when he gets close to the limit... However they have only implemented this function for windows mail clients! I was wondering if there was anything I could do in perl

Re: Adding path to @INC for use with web server

2002-10-11 Thread Adam Witney
www.SecureShopper.com 1-417-546-5593 From: Adam Witney [EMAIL PROTECTED] Date: Thu, 10 Oct 2002 11:09:38 +0100 To: MacOS X perl [EMAIL PROTECTED] Subject: Adding path to @INC for use with web server Hi, Searching the archives I have been able to find out how to get Perl to search

Re: Perl DBD-Pg 1.13 on Mac OS X 10.2

2002-09-23 Thread Adam Witney
Adam Witney suggests that the error depends on dlcompact. I have installed the dlcompact (version 20020913 fixed for Jaguar) from osxgnu site (www.osxgnu.org) but the problem persists. I spoke to the author of dlcompact about this on the 14th september So the version you installed above

Re: Perl DBD-Pg 1.13 on Mac OS X 10.2

2002-09-23 Thread Adam Witney
I just installed DBD-Pg 1.13 using fink and it all seems to work fine. This may be worth a look for you guys having trouble installing the manual way. adam

Re: Accessing Samba - Mount Volume Possible?

2002-05-03 Thread Adam Witney
Yes, me also. However I was unable to get it to read the password file (.nsmbrc) and it always prompted me for a password. Any ideas why this is so? Thanks adam Rich, This was _absolutely_ tremendously helpful. Thanks. /Michael #!/usr/bin/perl if(-f /users/userid/.nsmbrc) {

Re: how to include a file

2002-03-18 Thread Adam Witney
On the subject of Embperl, I have been trying to install HTML-Embperl-1.3.4, however the tests fail Any help would be greatly appreciated? (perl 5.6.0) [mrc1-003:local/install/HTML-Embperl-1.3.4] adam% make test PERL_DL_NONLAZY=0 /usr/local/bin/perl -Iblib/arch -Iblib/lib