Re: Text::Aspell

2007-09-11 Thread Dermot Paikkos
On 10 Sep 2007 at 12:52, Chas Owens wrote: > On 9/10/07, Beginner <[EMAIL PROTECTED]> wrote: > snip > > Does anyone have any ideas why this isn't working? Could this be > due > > to an environment variable? > snip > Are you sure you create (or updated) your dictionary correctly? ..snip It seems

problem with Sterling pound sign

2007-08-06 Thread Dermot Paikkos
Hi All, CGI; Mime::Lite; I am trying to take the input from a text field from a html page and send it as an email. The text contains a UK sterling £ sign. It looks fine on in the html page but when I send the mail or output the text to STDERR, it gets transformed into this: £ Here are a few of

Re: printf

2007-01-18 Thread Dermot Paikkos
On 18 Jan 2007 at 16:25, Eugene Kosov wrote: > Beginner wrote: > > Hi all, > > > > Sorry I am sure this is a lame question. > > > > I want to print out some column (with heading) and I want them > > evenly spaced. I know this is a printf but the format eludes me. > > > > printf("%c12", $var);

Re: File:: Copy

2006-12-20 Thread Dermot Paikkos
On 20 Dec 2006 at 8:00, Dukelow, Don wrote: > I can't get "use File::Copy" to work. I declare it at the beginning > of script but when I try to use it latter nothing happens. There are > no errors and nothing is copied. > > I'm using the command! > > copy($variable, $variable2); > > I've also

Re: Which module for web graph?

2006-12-14 Thread Dermot Paikkos
On 14 Dec 2006 at 5:44, Jeff Pang wrote: > Sorry that I never drew the graph for HTML page.Now I need to generate > some histogram for the statistic datas,I searched CPAN and found lots > of modules can be used. Can you help give the suggestion that which is > better (or easy) for my purpose? Than

Re: beginner

2006-12-07 Thread Dermot Paikkos
On 7 Dec 2006 at 3:47, isaac vanderpuije wrote: > > yes am using the x86 processor, i installed and didnt see any sign of > perl on my PC > > Beginner <[EMAIL PROTECTED]> wrote: > On 7 Dec 2006 at 3:31, isaac vanderpuije wrote: > > > have a problem installing the perl msi(windows platf

Re: scoping problem with hash

2006-06-13 Thread Dermot Paikkos
On 13 Jun 2006 at 12:27, Mr. Shawn H. Corey wrote: > On Tue, 2006-13-06 at 17:20 +0100, [EMAIL PROTECTED] wrote: > > print STDERR Dumper(%times); > > print STDERR Dumper( \%times ); That seems to have helped the Dumper output but I still haven't managed to get the other assignments to stick.

Re: perl cgi problem

2006-04-20 Thread Dermot Paikkos
On 20 Apr 2006 at 11:54, Saurabh Singhvi wrote: > Hi > > I am getting 500 internal server errors when i use > > #!/usr/bin/perl -wT > > in cgi's. It goes away if i remove the T part. So what could be the > problem?/ Something is tainted. Check the web-server error log for the perl error. Hav

Re: extract values from hash

2006-04-12 Thread Dermot Paikkos
On 12 Apr 2006 at 9:28, Mr. Shawn H. Corey wrote: if (defined($ary_users->[$i]->{$lc_surname}) ) { > > if( defiend( $ary_users->[$i]{lc_surname} ) && > $ary_users->[$i]{lc_surname} eq 'anderson' ){ > Thanx, it works (typo defiend). So there isn't a way to grep all the surnames out of the a

extract values from hash

2006-04-12 Thread Dermot Paikkos
Hi, I am trying to retrieve a list (of users) from an array of hashes. I have a structure like this: $VAR59 = { 'lc_surname' => 'anderson', 'first' => 'Angela', 'file' => 'angela_anderson.clk', 'name' => 'Angela Anderson', 'id' => 69,

Re: Really simple XML question

2006-03-31 Thread Dermot Paikkos
On 31 Mar 2006 at 9:39, Dave Adams wrote: > How do I print the value of 'Time Magazine'? > > Here is my file (ejournlist.xml): > > > > > Africa Confidential > Vol. 1, no.1 > PDFformat > > > Time Magazine > Vol. 1, no.1 > TXTformat > > > > Here is my script: > > #!/usr/bin/perl -w

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread Dermot Paikkos
Is that File::Copy or FILE::copy? The former is what you want. Dp. On 16 Mar 2006 at 9:53, Sonika Sachdeva wrote: > Hi All, > > I have used FILE::copy , perl syntax check is OK. > and am getting the following error when it tries to perform the copy > function . This is on windows system. > >

Re: [PBML] SED and AWK

2006-02-10 Thread Dermot Paikkos
On 10 Feb 2006 at 0:35, Peter Pan wrote: > OK. How would I do this in perl. I guess I could write a script to > call my perl script that runs this command > > --- In [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: > > > > > "Peter" == Peter Pan <[EMAIL PROTECTED]> writes: > > > > Peter> I have m

reference assignment - lol

2005-12-13 Thread Dermot Paikkos
Hi, I am a bit stuck with references and was hoping someone could help me out. In File1 I need to isolate the last number in the column and see if it exists in file2. If so, I would like to add the content of the line from file1 and print it out. There may be other ways of doing this but I wa

RE: Filering a file

2005-12-06 Thread Dermot Paikkos
On 6 Dec 2005 at 8:14, Adedayo Adeyeye wrote: > Hello David, > > I'm able to open the file, read the contents and output the results of > my initial filtering to a new file. > > The problem is that my new file has duplicate entries, and cleaning up > duplicates is where I'm stuck. > > Kind rega

Re: what use of the closure?

2005-12-02 Thread Dermot Paikkos
On 2 Dec 2005 at 23:44, Jennifer Garner wrote: > Hi,lists, > > I usually meet some problems of closure when do development under > mod_perl. Can anyone tell me that what use of a closure in > perl?thanks. Have a look at this doc. It is as full an explanation as your'll ever get. http://perl.ap

perl and C

2005-11-30 Thread Dermot Paikkos
Hi, There are some functions in a C library that I would like to use and I was wondering if it is possible to do so from perl. I started reading the perlxstut and this seems like the way forward but I was hoping someone could confirm it for me before I throw myself completely into it. Can you

Re: Open source IDE for Perl

2005-11-30 Thread Dermot Paikkos
On 30 Nov 2005 at 14:33, Andrej Kastrin wrote: > which is yours "best" open source IDE for Perl. I use SciTE under Linux, > but I'm a little confused on Windows. Which do you prefer? > vi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: regex mutil-line matching

2005-11-24 Thread Dermot Paikkos
On 23 Nov 2005 at 11:16, John W. Krahn wrote: > Dermot Paikkos wrote: > Hello, > > > Looking at the mail queue on my smtp server I notice the usual amount > > of crap. The mailq output is in this format: > > > > 11h 8.5K 1EeoEz-0003t2-00 <> > >

regex mutil-line matching

2005-11-23 Thread Dermot Paikkos
Hi Looking at the mail queue on my smtp server I notice the usual amount of crap. The mailq output is in this format: 11h 8.5K 1EeoEz-0003t2-00 <> [EMAIL PROTECTED] 10h 10K 1EepGl-0004VH-00 <> [EMAIL PROTECTED] 11h 8.4K 1EeoUI-0004YR-00 <> [EMAIL PROTECTED] I

Re: Date::Manip Delta_Format aprox question

2005-11-17 Thread Dermot Paikkos
On 17 Nov 2005 at 11:36, Rianne Ubbink wrote: > Hello, > > For a program that I'm writing atm I have to calculate the number of > months between two dates. The months format is 2005-11-17 and I've been > able to get a nice delta with the time in between de two dates. > This sounds like a jobs

Re: about email sender

2005-11-15 Thread Dermot Paikkos
On 15 Nov 2005 at 7:34, ZHAO, BING wrote: > Hi, all: > I have tried to read the email::sender module on CPAN, but it > is far beyond my > ablilty to understand it. And the synopsis gave me big headache too. But I > just feel it should be > no more than 5/6 lines to : >

Re: What is "shift" ?

2005-11-14 Thread Dermot Paikkos
On 13 Nov 2005 at 19:19, Dylan Stamat wrote: > No, not the routine that deals with Arrays ! > > I see code like the following, everywhere: > my $coolvariable = shift; > > Why is a new scalar being assigned to "shift" ? > New to Perl... sorry for the lame question, but couldn't find an answer > a

Re: Need permissions to rename file on Windows XP

2005-11-11 Thread Dermot Paikkos
On 11 Nov 2005 at 7:02, kathyjjja wrote: > Hello everyone, > > I am trying to rename a file like this: > > rename($myFile, $newName); > > The program dies there and says "Permission Denied." > > What can I do in order to rename that file? Not much if you don't own the file, have sufficie

Re: Checking pixel sizes

2005-11-04 Thread Dermot Paikkos
On 3 Nov 2005 at 15:29, Mike Blezien wrote: > Hello, > > I'm using ImageMagick to create thumbnails and other image manipulation with > a > upload script. And was wondering if the actual pixel size can be checked with > ImageMagick ?? I've used Image::Size to do this, but was wondering it can

Re: XML Help

2005-11-03 Thread Dermot Paikkos
On 3 Nov 2005 at 7:45, Scott Taylor wrote: > > Hi All, > > I'm using XML::Simple to parse a very simple XML file and dump the data > into hashes of hashes. > > The problem I'm getting, is sometimes information is blank in the XMl > file; it looks like this: > > instead of > 1234 > > and when I

Re: Is this script safe?

2005-10-28 Thread Dermot Paikkos
On 28 Oct 2005 at 10:05, Jay Savage wrote: > On 10/27/05, John W. Krahn <[EMAIL PROTECTED]> wrote: > > Dermot Paikkos wrote: > > > Hi, > > > > > > I wanted a script that would rename files from lower to upper case. I > > > have something b

Re: about running unix command in perl script

2005-10-28 Thread Dermot Paikkos
Have a look at Net::FTP. It can do all that your asking. I think it's part of the standard distribution. perldoc Net::FTP hth. Dp. On 28 Oct 2005 at 3:37, ZHAO, BING wrote: > Hi, > Is there a way to run unix command in perl? > To be specific, for the ftp command:

Is this script safe?

2005-10-27 Thread Dermot Paikkos
Hi, I wanted a script that would rename files from lower to upper case. I have something but I am a bit worried about going live with it as I can imagine there is plenty of room for error and I really don't want to knacker my filesystem. Could I get any comments of suggestion on what I have. I

Help with file blob please

2005-09-12 Thread Dermot Paikkos
Hi, Activestate 5.8 and IM 6.2.4 This feels like a silly question to have to ask but I don't understand. I was trying to do something with perl magick and read in the documentation that I need to use a syntax like: name=>string, profile=>blob My problem is that I have never used a blob before

Re: create a calender graphic

2005-07-13 Thread Dermot Paikkos
I guess I didn't look hard enough; Dave Cross's Calender::Simple looks like it will do most of the work for me. Dp. On 13 Jul 2005 at 11:03, Perl beginners wrote: > Hi, > > I am looking for a module that might help create a graphic of a > calender in the similar format to the unix cal function:

create a calender graphic

2005-07-13 Thread Dermot Paikkos
Hi, I am looking for a module that might help create a graphic of a calender in the similar format to the unix cal function: July 2005 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 The idea being that the u

PDF::API2

2005-06-21 Thread Dermot Paikkos
Hi perlers, This is a rather specialised query about the module PDF::API2. I am trying to create PDFs on the fly. The first attempt worked fine and I was delighted with the results. Then I was asked to make something similar with landscape orientation. It started well but I have hit a problem

RE: xml parser

2005-06-09 Thread Dermot Paikkos
Yeap that seems to have done it. Thanx Thomas. Dp. On 9 Jun 2005 at 12:23, Thomas Bätzler wrote: > Dermot Paikkos <[EMAIL PROTECTED]> asked: > > Thanx for the replies. At the moment I am testing the water > > so I am using Activestate 5.8. All I have done with >

xml parser

2005-06-09 Thread Dermot Paikkos
Hi, Thanx for the replies. At the moment I am testing the water so I am using Activestate 5.8. All I have done with XML::Simple is below. = xml-parse.pl = #!/bin/perl use strict; use XML::Simple; use Data::Dumper; my $file = shift; # Doesn't like

xml parser

2005-06-08 Thread Dermot Paikkos
Hi, I need to create a cgi program that will parse an xml file for output. I haven't began to write anything yet but had a look at the xml file I am going to work with. The snippet below contains 3 records. My question is what would be the best (easiest/fastest) way to parse the file. Should

[Summary]: End of line character

2005-06-01 Thread Dermot Paikkos
Thanx to Thomas for the quick response and answer. s/\s*$//; # delete all whitespace at the end of the string This was all that was necessary, although I like the qq tip as well. Dp. On 1 Jun 2005 at 11:27, Thomas Bätzler wrote: > Dermot Paikkos <[EMAIL PROTECTED]> coded: > [...

End of line character

2005-06-01 Thread Dermot Paikkos
is lrobertson mcutler mmarten mrossello mstorey nstroud ppleasants ptabarelli rcaballero rilari rshah rtaylor scallender sstone syang = ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Science Photo Library Phone: 0207 432 1100 * Fax: 0207 286 8668 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

standardising spellings

2005-02-24 Thread Dermot Paikkos
Hi, I have a list of about 650 names (a small sample is below) that I need to import into a database. When you look at the list there are some obvious duplicates that are spelt slightly differently. I can rationalize some of the data with some simple substitutions but some of the data looks al

Re: DBM file or similar

2005-02-22 Thread Dermot Paikkos
ould I just stick to using a flat file and extend it as you say? Dp. On 22 Feb 2005 at 10:00, Chris Devers wrote: > On Tue, 22 Feb 2005, Dermot Paikkos wrote: > > > I am looking for a way to store firstname/surname/id values in a > > file. Currently I am using a flat file to sto

DBM file or similar

2005-02-22 Thread Dermot Paikkos
? I could continue to use a flat file. There are only 50 users to store and perhaps it would not be improved by moving to a DBM file. Thanx. Dp. ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Science Photo Library Phone: 0207 432 1100 * Fax: 0207 286 8668 -- To unsubscribe, e

Accumlating totals with File::Find

2004-05-14 Thread Dermot Paikkos
Hi Gurus, I am stuck. I have thousands of jpegs in hundreds of folders and I would like to do a section by section tally of the number and file sizes of all the files. I am using File::Find as it is quick and good at recursively searching dirs. The files are stored in folder under a letter, th

Re: How to get the size of a hash?

2004-04-08 Thread Dermot Paikkos
Got it: if ($r->param("$param") ne "" ) { $num is now 10 and that right (only 2 stories this time). Thanx v.much for your time. Dp. On 8 Apr 2004 at 12:33, James Edward Gray II wrote: > On Apr 8, 2004, at 12:23 PM, Dermot Paikkos wrote: > > > That

Re: How to get the size of a hash?

2004-04-08 Thread Dermot Paikkos
k} => $hash{a3_storyfrom} => ...snip but how do I test for truth? Thanx. Dp. On 8 Apr 2004 at 12:33, James Edward Gray II wrote: > On Apr 8, 2004, at 12:23 PM, Dermot Paikkos wrote: > > > That's gives me all the keys (50) and I have only filled in three > > s

Re: How to get the size of a hash?

2004-04-08 Thread Dermot Paikkos
uot;."$p"; if (defined($r->param("$param")) ) { # print STDERR "\$hash{$param} => ".$r->param("$param")."\n"; $hash{$param} = $r->param("$param"); }

How to get the size of a hash?

2004-04-08 Thread Dermot Paikkos
  Story from   Story link Story 5 Headline  Description SPL link  Story from   Story link Story 6 Headline  Description SPL link  Story from   Story link Story 7 Headline  Description SPL link  Story from   Story link Story 8 Headline  De

adding an array as a hash value

2003-10-14 Thread Dermot Paikkos
dipteran fly maggot in compost heap","CREDIT: EYE OF SCIENCE/SCIENCE PHOTO LIBRARY Maggot in compost.    Coloured  scanning  electron micrograph  of  a dipteran fly maggot in a compost heap. Compost is made by stacking plant remains in a  heap.   The  remains degrade to a crumbly b

Warn if ?

2003-07-07 Thread Dermot Paikkos
Hi Gurus, I have seen the following in example scripts but do not full understand it. "warn $x if $x" I understand what warn does but I don't understand what it is evaluating? Can someone explain. Thanx. Dp. ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Scienc

Passing an array to a subroutine

2003-06-25 Thread Dermot Paikkos
loop with [EMAIL PROTECTED] = $tiffs[0] next is $tiffs[1]\n"; # $tiffs[1] prints undef print "Array is $bar size\n"; foreach $jpg (@tiffs) { # Put a carriage return in for MS WIN readers. my $grr = "$jpg"."\015"; print "$jpg\n"; p

pattern matching

2003-04-02 Thread Dermot Paikkos
Hi Gurus, I want to read a file and find/build an array of lines that match. Is it possible to do something like; if ( $pattern =~ /$line/ ) { dostuff; } Does perl interpolate the to variables? Or do I need to escape one of the variables? Any ideas? Dp. ~~ Dermot Paikkos * [EMAIL

Parse XML

2002-09-20 Thread Dermot Paikkos
o react quickly to any situation. Magnification unknown. NERVE FIBRE, OVERLAPPING AXON, NERVE FIBRE, OVERLAPPING FIBRE, NERVE, OVERLAPPING NERVE CELL, WITH FIBRES NEURONE, WITH NERVE FIBRES HUMAN BODY, ANATOMY, NERVOUS SYSTEM, NERVE FIBRE, FIBRES ~~ Dermot Paikkos * [EMAIL PROTECTED] N

Do I have to fo if to catch REGEX?

2002-05-07 Thread Dermot Paikkos
.42 2002/04/29 10:15 up 2 days, 15:12, 2 users, load average: 0.47, 0.39, 0.35 2002/04/29 10:30 up 2 days, 15:27, 3 users, load average: 0.24, 0.17, 0.21 2002/04/29 10:45 up 2 days, 15:42, 3 users, load average: 0.48, 0.56, 0.54 2002/04/29 11:00 up 2 days, 15:57, 3 users, load av

File::Temp for use with mounting remote filesystems

2002-04-17 Thread Dermot Paikkos
mpdir = tempdir(); system("mount","-t","nfs","server:/usr1","$tempdir") || die "Can't mount into $tempdir: $!\n"; I always get the OS error "no such file or directory". The dir is made so i am not sure if this is an OS prob

get PID od existing process

2002-04-16 Thread Dermot Paikkos
r if there is a module that would save a lot of work. I was thinking of doing something like: $output = `system(ps -e)` and doing some regexp on $output. Would that seem like the way to go? Dp. ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Science Photo Library Phone: 0207 432 1

Using strict and getting return values

2002-03-04 Thread Dermot Paikkos
s the results of a sub to main. What am I doing wrong?? Dp. ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Science Photo Library Phone: 0207 432 1100 * Fax: 0207 286 8668 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Can you manually update @INC

2002-02-26 Thread Dermot Paikkos
above path into @INC? I hope that was clear. Thanx. Dp. ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Science Photo Library Phone: 0207 432 1100 * Fax: 0207 286 8668 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

convert ctime to a string

2002-02-15 Thread Dermot Paikkos
hoping it would come back with a date string that was human readable. Does anyone know how to either get the ctime as a string or convert the interger into a date that is meaning full?? Thanx. Dp. ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Science Photo Library Phone: 0207

Getting CD volume info

2002-02-13 Thread Dermot Paikkos
olume name. Is there some way to get the CD name through perl. Thanx. Dp. ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Science Photo Library Phone: 0207 432 1100 * Fax: 0207 286 8668 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

UUCP and perl (or any alternatives)

2002-01-04 Thread Dermot Paikkos
or had trouble getting this to work? thanx. Dp. ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Science Photo Library Phone: 0207 432 1100 * Fax: 0207 286 8668 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Assigining a scalar value to an array name - how?

2001-12-13 Thread Dermot Paikkos
Thanx. Dp. ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Science Photo Library Phone: 0207 432 1100 * Fax: 0207 286 8668 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Pattern match woos

2001-12-05 Thread Dermot Paikkos
) { chomp($p); ($code) = ( $p =~ /^\(\w\d+)/ ); } print "$code\t $i\n"; Most of my attempts have been trying to Esc the "<", but I am not sure these are metacharacters. Any help? Dp. ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Science Photo Librar

Tk or menu based user interface.

2001-11-26 Thread Dermot Paikkos
along to CPAN but there are hundreds of TK modules. I do not need fancy graphics or bitmaps and this will not run on X. I want a text based menu that will run via a telnet session. Can anyone advice? What module should I get? Thanx. Dp. ~~ Dermot Paikkos * [EMAIL PROTECTED] Network

REGEX or Parse a text file

2001-11-14 Thread Dermot Paikkos
Hi Perlgurus, I am having trouble getting the data I want out of a text file: The file has this sturcture: File Name: m:\a\a084099.jpg Width x Height: 2480 x 2062 Number of Colours: True Colour (24 bits) Dots per inch: 300 x 300 Image size (inches): 8.27 x 6.87 Raw size: 15341280 Actua