;
... #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
in
UTF-8
*sigh*
Robin
does this?
tia
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
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
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
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
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
:).
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
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
exeternal modules like freeze/thaw etc.
TIA
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
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
(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
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
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
.
Robin
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
with AppleScript, osaxen and a copy of Eudora back
around OS7.
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
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
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
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
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
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
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
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
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
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
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
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
a couple
pointers :
* have you installed 5.8 recently?
* do you use fink?
hth
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
is chunked into fixed length records which aren't
separated by tokens. Japanese? no COBOL ;-)
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
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
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
directly?
TIA
Robin
.
check that the file owner is the terminal (in the finder [apple] + [i])
and not BBedit
HTH
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
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
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
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
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
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
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
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
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
the
environment variables).
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
5.8.0 on a Mac OS X 10.2.1 Server(!) fo
HTH 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
) 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
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
Is anyone else doing/done this? Care to share notes?
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,
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
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
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..
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
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
- 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
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,
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 :-)
, 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 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
of a lot less generous towards Apple (BTW
anyone know where those quicktime ads come from so I can block the DNS?).
Robin
68 matches
Mail list logo