Re: SQLite over MySQL?

2011-06-19 Thread Chas. Owens
o connect, no users own tables (and therefore there are no privileges to grant). The database does no type checking. If you declare a column as being an integer, there is nothing to stop you from storing a string in it (this is a simplification of its dynamic typing, but an integer column can contain "fred"). [1]: http://www.sqlite.org/serverless.html -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: Clean Install

2011-06-17 Thread Chas. Owens
hebang line is not used to find the perl interpreter in that case (but I believe some of the switches still have an effect). This is the solution I tend to use these days. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: New Perl-Installation on new OS X

2011-06-09 Thread Chas. Owens
rsion. If patchperl is installed (and it gets installed by the install script from the POD), it will allow you to build older versions of perl that break on newer machines. That is about all it does, but that can be incredibly useful. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: Need some help on installing modules...

2011-01-17 Thread Chas. Owens
security update [breaking][4] Perl 5. [1]: http://search.cpan.org/dist/App-perlbrew/lib/App/perlbrew.pm [2]: http://search.cpan.org/dist/App-cpanminus/lib/App/cpanminus.pm [3]: http://stackoverflow.com/questions/3718153/how-can-i-install-perl-version-under-my-home-using-perlbrew [4]: http:/

Re: MacOSX-File-0.71

2011-01-16 Thread Chas. Owens
ght under the CPAN logo (the link is the author's name). -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: New to Mac - need help compiling a package

2009-04-28 Thread Chas. Owens
, well, that is the sort of thing that can happen when you install modules as root. I find it much better to install as a normal user, that way my modules are safe from OS updates screwing with them. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: New to Mac - need help compiling a package

2009-04-27 Thread Chas. Owens
does the "perl Makefile.PL --bootstrap" step work? Try typing * perl Makefile.PL --bootstrap 2>&1 | pbcopy * go to http://pastebin.com/ * hit command+v to paste the results into the textbox * hit send * copy the URL from the location bar and send it to the list -- Chas. Owens wonkde

Re: New to Mac - need help compiling a package

2009-04-27 Thread Chas. Owens
not found. We have 6.300. > 'INSTALL_BASE' is not a known MakeMaker parameter name. > Writing Makefile for local::lib > > In addition I have earlier tried option 2 but the make command fails with > the following error: > bash: make: command not found > > Thanks agai

Re: New to Mac - need help compiling a package

2009-04-27 Thread Chas. Owens
ake install" * add "export PERL5LIB=~/perl5/the/path/leading/up/to/the/twitter/dir" to .profile, .bash_profile, or .bashrc (whichever you use). * close terminal * open terminal 1. http://search.cpan.org/CPAN/authors/id/A/AP/APEIRON/local-lib-1.003003.tar.gz -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: What does ord mean?

2009-03-04 Thread Chas. Owens
rs to do the right thing: perl -le 'print "\x{A0}"' | perl -nle 'print ord' I assume the problem has to do with UNICODE vs UTF-8. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: Adding to @INC

2009-01-07 Thread Chas. Owens
On Wed, Jan 7, 2009 at 11:21, Adam Witney wrote: > > On 7 Jan 2009, at 16:19, Chas. Owens wrote: > >> On Wed, Jan 7, 2009 at 11:13, Adam Witney wrote: >>>>> >>>>> Try adding this to your ~/.profile >>>>> >>>>> export PE

Re: Adding to @INC

2009-01-07 Thread Chas. Owens
le will work. My ~/.profile was > created by a previous fink installation if i remember correctly. Check .bash_profile, there is probably a line like . ~/.profile in it. I don't think it was Fink that added that, Fink has always just added test -r /sw/bin/init.sh && . /sw/bin/init.sh

Re: Adding to @INC

2009-01-07 Thread Chas. Owens
y 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 users to see t

Re: Res: Res: Res: Parsing of undecoded UTF-8 will give garbage when decoding entities

2008-09-27 Thread Chas. Owens
On Sep 27, 2008, at 10:00, Bianca Shibuya <[EMAIL PROTECTED]> wrote: Thank you for your help. But the content of @$row[7] is a string (I have printed out it). If it is not a string, I cannot identify other variable to apply this function. =( Because the rest of the program is a sequence of

Re: How to run Perl script at Mac OS (Darwin) Release?

2008-03-07 Thread Chas. Owens
st either make sure it is in a directory in your PATH or run it with either a relative or absolute name: ./test1.pl /home/username/test1.pl -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: Proposed Mac::Pasteboard

2008-01-28 Thread Chas. Owens
On Jan 28, 2008 1:45 PM, <[EMAIL PROTECTED]> wrote: snip > That seems to argue that I publish Mac::Pasteboard pretty much as is, > then follow with Mac::Clipboard. It's lazy, but is it lazy _enough_? > > Would it expedite discussion if I put out a pre-release of the code? > If so, how should it be

Re: Proposed Mac::Pasteboard

2008-01-27 Thread Chas. Owens
On Jan 26, 2008 10:46 PM, <[EMAIL PROTECTED]> wrote: > On Jan 22, 2:31 am, [EMAIL PROTECTED] (Brian D Foy) wrote: > > [[ This message was both posted and mailed: see > >the "To," "Cc," and "Newsgroups" headers for details. ]] > > > > In article > > <012120080315.17779.47940E4B0005B03445732

Re: problem with @INC

2008-01-18 Thread Chas. Owens
On Jan 17, 2008 2:33 PM, ANJAN PURKAYASTHA <[EMAIL PROTECTED]> wrote: > Hi, > a use PGPLOT command in the PDL turns up this error: snip > However PGPLOT.pm seems to be present in > 1. /Users/anjan/.cpan/build/PDL-2.4.3/Graphics/PGPLOT/PGPLOT.pm > and > 2. /Library/Perl/5.8.6/darwin-thread-multi-2l

Re: tr question (probably wrong list to ask, but ...)

2007-11-30 Thread Chas. Owens
On Nov 30, 2007 9:43 PM, Joel Rees <[EMAIL PROTECTED]> wrote: > I guess it would help if I posted my code and what it puts out. snip Whoa, way to much information. Try to reproduce your issue with the least amount of code and data. Off hand I would say your problem is probably with the encoding

Re: tr question (probably wrong list to ask, but ...)

2007-11-30 Thread Chas. Owens
On Nov 30, 2007 9:19 PM, Doug McNutt <[EMAIL PROTECTED]> wrote: > At 01:56 + 12/1/07, Andy Holyer wrote: > >On 1 Dec 2007, at 00:33, Joel Rees wrote: > > > >>This is probably the wrong list for this question, but is anyone willing > >>to give me a clue why > >> > >>$line =~ tr/+/ /; > >> > >>

Re: tr question (probably wrong list to ask, but ...)

2007-11-30 Thread Chas. Owens
On Nov 30, 2007 7:33 PM, Joel Rees <[EMAIL PROTECTED]> wrote: > This is probably the wrong list for this question, but is anyone > willing to give me a clue why > > $line =~ tr/+/ /; > > would clip out the lead bytes of a shift-JIS string in a cgi script? snip The only thing that should do is repl

Re: Is there a True Boolean type in Perl?

2007-10-16 Thread Chas. Owens
On 10/15/07, Doug McNutt <[EMAIL PROTECTED]> wrote: > At 18:20 -0700 10/15/07, Michael Barto wrote: > >I think in the more newer languages, they have implemented true booleans. > >Perl > >is kind of old school. > > use constant TRUE => 1; > use constant FALSE => 0; > > Is a complete solution in pe

Re: Is there a True Boolean type in Perl?

2007-10-16 Thread Chas. Owens
On 10/15/07, Michael Barto <[EMAIL PROTECTED]> wrote: > > I think in the more newer languages, they have implemented true booleans. > Perl is kind of old school. Pascal defines them as a grandfather of > languages. > Therefore as one migrates the languages to a higher levels (e.g. Perl[n]), >

Re: Is there a True Boolean type in Perl?

2007-10-15 Thread Chas. Owens
On 10/15/07, Michael Barto <[EMAIL PROTECTED]> wrote: > As both Java and Javascript both have a 'true' and 'false' or Boolean data > type, is > there any interest in evolution of Perl to have a true Boolean. Or what is > the > preferred method to do this in Perl. The "C" programmers want me to

Re: Re: Leopard Perl version... @ 1192462023

2007-10-15 Thread Chas. Owens
On 10/15/07, Johan Meskens CS3 jmcs3 snip > > I *wish* it was 5.10 as that has some > > very nice features that I am excited about. > > like what for example ? snip Here are some of the things that are coming in Perl 5.10. * a switch statement: given($string) { when (/^

Re: unable to install Math::GMP

2007-09-05 Thread Chas Owens
On 9/5/07, Louis-Philippe <[EMAIL PROTECTED]> wrote: > > ok so I tried something: > > -bash-2.05b$ /usr/bin/perl -MMath::GMP -le 'print "ok"' > Can't locate Math/GMP.pm in @INC (@INC contains: /usr/local/lib/perl5/ snip > -bash-2.05b$ /opt/local/bin/perl -MMath::GMP -le 'print "ok"' > ok snip Ok,

Re: unable to install Math::GMP

2007-09-05 Thread Chas Owens
On 9/5/07, Louis-Philippe <[EMAIL PROTECTED]> wrote: > I tried both fink & macports in the past... > but I don't use any right now, and they left lots of trace in my system... > how would I know if my thing is wrecked? snip Not quite sure, the first thing I would do is say which perl to see whic

Re: unable to install Math::GMP

2007-09-05 Thread Chas Owens
On 9/5/07, Louis-Philippe <[EMAIL PROTECTED]> wrote: > here is what it does: > > -bash-2.05b$ perl -MMath::GMP -e 'print "ok"' > ok-bash-2.05b$ > If you had included the -l along with the -e it would have made more sense, but that means perl can find Math::GMP (it would have thrown an error otherw

Re: unable to install Math::GMP

2007-09-05 Thread Chas Owens
On 9/5/07, Louis-Philippe <[EMAIL PROTECTED]> wrote: snip > Net::SSH::Perl still stops its install at the same spot it did before!!! > : > > t/02-buffer..Can't locate Math/GMP.pm in @INC (@INC contains: snip can you say perl -MMath::GMP -le 'print "ok"' If not then you need to add the direct

Re: Can't Install DBD::mysql

2007-06-13 Thread Chas Owens
On 6/13/07, Lola J. Lee Beno <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > > There is a package called "Headers and libraries". You need to > install that as well if you want to compile code that talks to MySQL. > Where do I get this package? -- Lola J. Lee Beno

Re: Can't Install DBD::mysql

2007-06-13 Thread Chas Owens
On 6/13/07, Lola J. Lee Beno <[EMAIL PROTECTED]> wrote: Sherm Pendley wrote: > > The error message is telling you what file is missing - it's the C > client library that should have been installed with MySQL itself. > > So, what went awry during the MySQL installation to cause that file to > be m