Parsing UTF8 files with wide characters

2005-06-15 Thread Robin
; ... #Encode::decode_utf8($_); to test this ) TIA Robin #!/usr/bin/perl -w use strict; use diagnostics-verbose; #require Encode; binmode (DATA,:utf8); binmode (STDOUT,:utf8); for (DATA){ if (/([EMAIL PROTECTED])/gs){ print match: ,$1,\n; #Encode

Re: Parsing UTF8 files with wide characters

2005-06-15 Thread Robin
in UTF-8 *sigh* Robin

Parsing Jpeg files for comments

2005-06-08 Thread Robin
does this? tia Robin

Re: ActiveState is announcing support for Mac OS X

2005-06-08 Thread Robin
erm try Cpanplus maybe? I understood that Cpan was no longer being actively developed. Robin On 9 Jun 2005, at 05:43, David Cantrell wrote: Lola Lee wrote: David Cantrell wrote: John Delacour wrote: Getting CPAN to behave is also a black art. I wonder what you're doing wrong, then. I'm

Re: Parsing Jpeg files for comments

2005-06-08 Thread Robin
On 8 Jun 2005, at 20:01, Chris Devers wrote: On Wed, 8 Jun 2005, Robin wrote: I've googled about for this but to no avail: Try search.cpan.org next time :-) I'm hurt you think I didn't :) Yes: Image::Info. this was the first thing I found and downloaded and is great for getting

Re: CPAN can't write makefiles after perl 5.8.1 reinstall on 10.3.4

2004-07-15 Thread Robin
to the CPAN directory and doing a manual make there (make; make test; make install). Specs: OSX Mac OS X 10.3.4 (7H63) perl, v5.8.1-RC3 built for darwin-thread-multi-2level Robin

Parsing and merging plist files

2004-07-14 Thread Robin
Mac::plist but am left with the impression it's as quirky as my current iCal solution, so (yes I finally got to the question I want to ask): Has anyone been here? Tips? Warnings? Encouragement? Is there are more reliable parser than Mac::plist? TIA Robin

Re: xterm color support

2004-01-23 Thread Robin
Mircrosoft :). HTH Robin On Sunday, January 18, 2004, at 01:54 pm, gohaku wrote: Hi everyone, I have a question about the following script: use Term::ANSIColor; print color(red on_white), Danger, Will Robinson!\n; print color(red on_white), Danger, Will Robinson!\n; print color(red on_white

Re: xterm color support

2004-01-23 Thread Robin
:). Another good argument for using the module... It's not magic, it has no silver bullet to ensure every terminal will show the same colours/formats, simply because the module uses the same escape codes I listed in my earlier posting, being as they are ANSI standards :). Robin

Re: xterm color support

2004-01-23 Thread Robin
On Saturday, January 24, 2004, at 12:18 am, Wiggins d Anconia wrote: ---snip-- as we seem to be adding nothing to the discussion I suggest we take this off list Robin

Mud - security, data management

2004-01-16 Thread Robin
exeternal modules like freeze/thaw etc. TIA Robin

Re: Perl, cron and prebinding puzzle.

2003-12-17 Thread Robin
Ok thanks Sherm that was the problem, I presume the prebinding errors are because perl is being passed the equivalent of \quoted/data\ and the fall out registers as a prebinding error thanks again Robin On Wednesday, December 17, 2003, at 05:37 pm, Sherm Pendley wrote: On Dec 17, 2003

Perl, cron and prebinding puzzle.

2003-12-16 Thread Robin
I have the following script #!/usr/bin/perl -w open (OUT , /Users/robin/env.cron) || die; $ENV{'RUN_AT'}= localtime; for $key(keys(%ENV)){ print OUT $key, = ,$ENV{$key},\n; } close (OUT); which runs as expected from the command line, but entered in my (admin) crontab thus 5 * * * * /Users

Re: installing ming on Jaguar success(long-ish)

2003-12-12 Thread Robin
(1.0); $font = new SWF::Font(/Users/robin/Desktop/serif.fdb); $text = new SWF::Text(); $text-setFont($font); $text-moveTo(200, 2400); $text-setColor(0xff, 0xff, 0x99); $text-setHeight(1000); $text-addString(It works!); $movie = new SWF::Movie(); $movie-setDimension(5400, 3600); $movie-add($text

Re: get contents from clipboard

2003-12-11 Thread Robin
late in on this one but you can treat the clipboard as a filehandle if you pipe to pbpaste and pbcopy : open (FROM_CLIPBOARD, pbpaste|); open (TO_CLIPBOARD, |pbcopy); you can then do as you normally would for moving data to and from fle handles. See the typically

Re: japanese in regular expressions possible?

2003-08-14 Thread Robin
for these? I'm ashamed to admit it but I currently cop out and use English for web pages that will be processed by perl Robin

Re: Ordering keys in a hash

2003-08-06 Thread Robin
. Robin

Re: [OT] backslash when working with Japanese (Re: Pantherbites)

2003-07-25 Thread Robin
Robin

Re: DropScript confusion about cwd

2003-07-12 Thread Robin
to the boundries of patience, is time well spent? I don't, and I suspect this reason is precisely why Apple makes sure you have to use it for IPC in Acqua rather than leaving a nice programatic interface. Robin

Re: DropScript confusion about cwd

2003-07-10 Thread Robin
with AppleScript, osaxen and a copy of Eudora back around OS7. Robin

Re: Japanese + Encode::Guess

2003-06-25 Thread Robin
Thanks for your help Dan, but I'm mo further forward, the answer is apparently 'ascii', which is puzzling, because but the content is not ASCII - it is still legible in a web browser as it was written originally so the data is still intact. I'm guessing that Encode::Guess tests the beginning

Japanese + Encode::Guess

2003-06-24 Thread Robin
I'm trying to find out what encoding has been used on a file. It was created in a text editor under OS9, but edited also under OSX, the scripe below outputs: Encode::XS=SCALAR(0x94a2c), which when de-reffed is '2421076' I'm none the wiser. Robin #!/usr/bin/perl -w #=== declare

Getting character Encoding

2003-06-20 Thread Robin
I'm trying to find out what encoding has been used on a file. It was created in a text editor under OS9, but edited also under OSX, the scripe below outputs: Encode::XS=SCALAR(0x94a2c), which when de-reffed is '2421076' I'm none the wiser. Robin #!/usr/bin/perl -w #=== declare

Re: Installing 5.8.0

2003-06-19 Thread Robin
On Friday, June 20, 2003, at 07:23 am, Ken Williams wrote: On Wednesday, June 18, 2003, at 03:54 PM, Robin wrote: On Wednesday, June 18, 2003, at 11:34 pm, David R. Morrison wrote: Has the problem with CPAN overwriting /usr/bin/head with /usr/bin/HEAD been solved? yes I believe so, thought

Problems installing Term::ReadLine::Gnu

2003-06-18 Thread Robin
machine is running OSX cl 10.2.6 perl 5.6 installed as standard perl 5.8 intsalled under my /Users/robin/usr/local installed GNU readline 2.1 I get the errors listed below when trying to install Term::ReadLine::Gnu. I can see there are perl DYLD errors which suggests 5.6/5.8 conflict, so

Re: Installing 5.8.0

2003-06-18 Thread Robin
sure that you actually need to upgrade unless the scripts you want to use are trying to use modules which are only available for perl 5.8, or sytaxt which is special to perl 5.8. For the most part there is backwards compatibility between versions 5.x. HTH Robin

Re: Installing 5.8.0

2003-06-18 Thread Robin
On Wednesday, June 18, 2003, at 11:34 pm, David R. Morrison wrote: Robin [EMAIL PROTECTED] wrote: upgrades, it belongs to you. Install perl via CPAN as shown also won't overwrite the perl used by the OSX system itself (perl5.6, kept in Has the problem with CPAN overwriting /usr/bin/head

Re: odd LWP install errors

2003-06-17 Thread Robin
and/or kill and start named manually: (in the terminal) ps -aux | grep named sudo kill -HUP namedPID this will throw up errors in the systemlog telling you where and what isn't as it should be. hth Robin

Re: Perl 5.8 dyld errors with CPAN.pm

2003-06-17 Thread Robin
On Thursday, June 12, 2003, at 12:58 am, Matthew Diephouse wrote: I hate to beat a dead horse here, but I'm getting some errors from CPAN.pm after installing 5.8. I can't redo `make install` because I used a package and didn't compile myself. What module is this error coming from? It's coming

Re: Installing 5.8.0

2003-06-17 Thread Robin
On Tuesday, June 17, 2003, at 12:24 pm, Sherm Pendley wrote: On Monday, June 16, 2003, at 10:54 PM, Lorin Rivers wrote: What is the best, simplest, and easiest approach to having a rock solid, reasonably standard perl setup? If you really and truly need 5.8.0 - and there are some good reasons

Re: CPAN/compilation issues

2003-06-13 Thread Robin
On Thursday, June 12, 2003, at 02:23 am, Christopher D. Lewis wrote: On Thursday, June 5, 2003, at 09:23 AM, Robin wrote: * have you installed 5.8 recently? * do you use fink? I use perl 5.8 (installed over default install, unfortunately) that's the problem then - 5.6 and 5.8 have different code

Re: Learning Perl book, Chapter 1 example: open MAIL, |mail email_address doesn't work

2003-06-08 Thread Robin
return 0 instead - historically any other return value would be an error code, see quotes below for clarifiaction hth Robin quotes lifted from unix C programming manpages: Upon successful completion, getrlimit() and setrlimit() return 0. Otherwise, these functions return -1 and set errno

Re: CPAN/compilation issues

2003-06-06 Thread Robin
a couple pointers : * have you installed 5.8 recently? * do you use fink? hth Robin

Re: [MacPerl] Re: problem with Japanese text

2003-03-29 Thread Robin
pronunciation, I haven't seen yet seen software which can do this so in most address book type apps they still have to enter both kinds of data manually. Robin

Re: [MacPerl] Re: problem with Japanese text

2003-03-28 Thread Robin
is chunked into fixed length records which aren't separated by tokens. Japanese? no COBOL ;-) Robin

Re: [MacPerl] Re: problem with Japanese text

2003-03-27 Thread Robin
On Thursday, March 27, 2003, at 01:31 am, Chris Nandor wrote: [EMAIL PROTECTED] (Robin) wrote: MacPerl per se historically has not been aware of locale outside of ascii defined ones (not sure about the latest version). Is there a reason for MacJPerl when MacPerl 5.8.x is released? while the 5.8

Re: [MacPerl] Re: problem with Japanese text

2003-03-26 Thread Robin
se historically has not been aware of locale outside of ascii defined ones (not sure about the latest version). Which is why of course there is MacJPerl. http://world.std.com/~habilis/macjperl HTH Robin On Wednesday, March 19, 2003, at 05:58 am, Scott R. Godin wrote: Jon Reinsch wrote

Re: A Wheeler by anyother name...

2003-03-16 Thread Robin
I love these kinds of threads, everything reduced to black and white. while we're at it, can anyone suggest * a good text editor for editing perl scripts? * a decent OS * who should be running Apple * which is the most secure version of Unix * which is the least secure version of Unix * why the

accessing file contents at byte level

2003-03-12 Thread Robin
directly? TIA Robin

Re: MacPerl-Perl help

2003-03-11 Thread Robin
. check that the file owner is the terminal (in the finder [apple] + [i]) and not BBedit HTH Robin

Re: perl: warning: Setting locale failed.

2003-03-10 Thread Robin
(C). perlocale touches on this, it's a known issue for OSX. Concrete solutions along with explanations as to what is happening here: http://www.omnigroup.com/mailman/archive/macosx-admin/2002-September/ 025590.html HTH Robin

Re: perl: warning: Setting locale failed.

2003-03-10 Thread Robin
man mklocale but I haven't had the courage to try this for fear of breaking something which relies on the way the system behaves at present. Or maybe I'm being too generous to Apple. Robin

Re: setenv LANG in v5.8

2003-02-06 Thread Robin
wish I believe*, as this aids perl in its text processing abilities, though I haven't tried setting this to anything other than English. * provided it is an existising local definition HTH Robin

Re: setenv LANG in v5.8

2003-02-06 Thread Robin
wish I believe*, as this aids perl in its text processing abilities, though I haven't tried setting this to anything other than English. * provided it is an existising locale definition HTH Robin

Re: Another Perl 5.8 Problem

2003-01-15 Thread Robin
this constant will be there and that is what the (above) warning is saying: I can't find a value for LC_ALL but so you can get pattern matching and comparisions of data I'm defaulting to the C locale anyway, you might want to check into things your end HTH Robin

Re: Another Perl 5.8 Problem

2003-01-14 Thread Robin
that particular warning can be found in the archives of this mailing list along with explanations on what the various solutions offered here do, why you're getting the error in the first place and a perl script that does all the right stuff under the hood for you so you will get it no more no

Re: CPAN Failure after install of 5.8.0

2003-01-14 Thread Robin
to put it in a nut shell: 5.6 and 5.8 are not binary compatible. There for anything which was compiled for 5.6 will not work for 5.8. Or to put it another way, you will have to download and re- compile any modules which exhibit odd behaviour under 5.8. hth Robin On Tuesday, January 14

Re: Another Perl 5.8 Problem

2003-01-14 Thread Robin
oops! forgot to include the URL http:[EMAIL PROTECTED]/msg03130.html On Tuesday, January 14, 2003, at 09:53 PM, Robin wrote: that particular warning can be found in the archives of this mailing list

Re: Another Perl 5.8 Problem

2003-01-14 Thread Robin
Tools Plist Editor or the perl script (duly modified to match your needs ) from the post at http:[EMAIL PROTECTED]/msg03130.html, as you prefer. It wouldn't hurt to read through perllocale too :-) HTH Robin

execable perl scripts puzzle

2002-10-07 Thread Robin
the environment variables). Robin

Re: execable perl scripts puzzle - solved

2002-10-07 Thread Robin
I guess this is what comes of expecting things to be more complicated than they actually are :-) At 18:38 Uhr +0900 07.10.2002, Robin wrote: saved as script_name.command... .opens it in TextEdit, On Monday, October 7, 2002, at 09:25 PM, John Delacour wrote: If you change the extension

Re: Perl 5.8.0 on MacOS X 10.2.1 Server (problems)

2002-10-03 Thread Robin
5.8.0 on a Mac OS X 10.2.1 Server(!) fo HTH Robin

Re: question on ssh and peeve on editors

2002-10-03 Thread Robin
wht not copy the files back and forth with perl: use LWP::Simple; $flag = mirror($RemotePath,$LocalPath); print $flag,\n; } On Friday, October 4, 2002, at 03:20 AM, Andrew Brosnan wrote: On 10/3/02 at 1:12 PM, [EMAIL PROTECTED] (Puneet Kishor) wrote: I want to edit perl scripts You

Re: 10.2 + 5.8 CPAN trouble

2002-10-02 Thread Robin
) saves changes tyou just made OR : cpan o conf init which will run the script which asked you for the config info the first time you ran CPAN In the terminal type perldoc cpan for more information about CPAN. HTH Robin On Wednesday, October 2, 2002, at 09:53 PM, Richard Jolly wrote: tar

Re: 10.2 + 5.8 CPAN trouble

2002-10-02 Thread Robin
On Thursday, October 3, 2002, at 12:06 AM, Richard Jolly wrote: Why is it such a bad idea to replace Apple's 5.6? I could reinstall 10.2 just to revert that, I guess. Would it be worth it? in short perl 5.6.1 is not the same code base as 5.8- so any modules whch were ompiled to run with

Parsing JIS X 0208 Shift JIS with 5.8.0

2002-10-01 Thread Robin
Is anyone else doing/done this? Care to share notes? Robin

Re: Parsing JIS X 0208 Shift JIS with 5.8.0

2002-10-01 Thread Robin
First off - I didn't post specifics because I wasn't sure that it might be of interest to the OSX perl comunity as a whole, I hoped to get the interested parties emailing me privately, but then again the total scarcity of docs (that I could find in English) regarding this topic on the net,

Fwd: Proper channels ... Re: OT: MacAngst

2002-10-01 Thread Robin
Begin forwarded message: From: Matt Johnston [EMAIL PROTECTED] Date: Tue Oct 1, 2002 1:16:11 AM Asia/Tokyo To: Mac Admin [EMAIL PROTECTED] Subject: Proper channels ... Re: OT: MacAngst On Monday, Sep 30, 2002, at 12:57 Europe/London, Robin wrote: On Monday, September 30, 2002, at 11

Re: OT: MacAngst

2002-09-30 Thread Robin
On Monday, September 30, 2002, at 11:27 AM, Bill Stephenson wrote: Edward Lewis [EMAIL PROTECTED]wrote: Is there someplace to express extreme displeasure over MacOS X? Provide some detail and we'll try to help... If your only goal is to express extreme displeasure over MacOS X, I don't know

Re: OS X Smokers

2002-09-30 Thread Robin
perl.org quoth: The smokers does smoke tests of the bleading edge Perl on various platforms to help the developers spot new bugs as fast as possibly. man sounds like a world of pain..

Re: request: dyld explained

2002-09-24 Thread Robin
This error might be connected with your lib paths - namely if you've installed a newer version of perl. Due to the basic animosity between 5.6.* and 5.8.0, if you've installed 5.8.0 it doesn't like mods compiled with 5.6.* You may need to re install the mods concerned. HTH Robin

Re: mysqldump perl script via crontab problems

2002-09-23 Thread Robin
On Sunday, September 22, 2002, at 12:30 pm, douglas mcdonald wrote: I'm having a problem running a backup script through cron. The script runs perfectly from the command line, but when I run it through cron I end up with an empty file. This is presumably because the mysqldump is not

Re: Standardfile ?

2002-09-23 Thread Robin
- the deal is anything which used calls to the toolbox in OS9 won't work under OSX, however some interested parties are working on porting some of the functionalities. Or there's camel bones (http://camelbones.sourceforge.net/)if you can't wait and want to roll your own. HTH Robin

Re: OS Poll

2002-09-23 Thread Robin
On Tuesday, September 24, 2002, at 09:53 am, Ric Phillips wrote: MS, though not makers of hardware - to any great extent - Can you name 1 computer actually made by Microsoft, ever? Or are you talking about joysticks? Hardware may or may not be an essential part of a platform. Oracles,

Re: OS Poll

2002-09-23 Thread Robin
On Tuesday, September 24, 2002, at 02:15 pm, Justin Simoni wrote: Can you name 1 computer actually made by Microsoft, ever? Xbox. email this from your Xbox did you :-)

Re: lost path settings and funky cpan

2002-09-22 Thread Robin
, install sequence (which require a minimum of user input), however it will try to download perl everytime you run it. Annoying but not that harmful unless you're short on disk space. Have you looked on the CPAN web site to see if you can get an older copy of CPAN bundle? Robin

Locale setting errors - LC_ALL, LANG

2002-09-20 Thread Robin
# Locale WTK(water torture killer).pl # Author Robin McFarlane [EMAIL PROTECTED] # # based on the shell script written by by Bob Dalgleish # viewable at http://duke.usask.ca/~dalglb/macosx/Perl_5.6.html # # This script will look for any missing folders and files in your user folder, # needed to kill

Re: OS Poll

2002-09-20 Thread Robin
of a lot less generous towards Apple (BTW anyone know where those quicktime ads come from so I can block the DNS?). Robin