Re: errors when importing eps file

2011-12-03 Thread Jim Gibson
At 7:05 AM + 12/4/11, Huub van Niekerk wrote: Hi, I'm trying to import an eps file but I get errors. Can somebody tell how I can solve either of these 2 errors. BTW, I'm not using them at the same time. $ps->importepsfile("/mnt/Kaapstadadmin/HVW/logo-2-gemeentekleuren.eps", 0,0, 151,90); E

errors when importing eps file

2011-12-03 Thread Huub van Niekerk
Hi, I'm trying to import an eps file but I get errors. Can somebody tell how I can solve either of these 2 errors. BTW, I'm not using them at the same time. $ps->importepsfile("/mnt/Kaapstadadmin/HVW/logo-2-gemeentekleuren.eps", 0,0, 151,90); Error with above line: Can't call method "importep

Re: Simulate `sh -x'

2011-12-03 Thread Peter Scott
On Jun 24 2002, 4:44 am, davidtg-perl-beginn...@justpickone.org (David T- G) wrote: > ...and then Peter Scott said... > % >% Would you like tracing that goes off when you go into a function? Suppose > % >% if you gave a numeric argument to 't' it would trace up to that depth > % >% in subroutine

Re: Make a script to run multiple scripts

2011-12-03 Thread Peter Scott
On Thu, 01 Dec 2011 12:38:56 -0500, Ryan.Barracuda wrote: > I have 7 perl scripts that I want to run simultaneously from the command > line with the possibility of growing this number. I'm pretty new to > perl, so thought in the mean time it would be a good idea to create a > perl script to run mul

Re: Assigning List variable when slicing a list.

2011-12-03 Thread Jim Gibson
At 11:46 AM -0800 12/1/11, flebber wrote: Hi I can get the standard list slicing to work. But what about getting the result of a list slice to an interpolated string or a range interpolated. In beginning perl Simon uses this example #!/usr/bin/perl # multilist.plx use warnings; use strict; my

Re: Assigning List variable when slicing a list.

2011-12-03 Thread John W. Krahn
flebber wrote: Hi Hello, I can get the standard list slicing to work. But what about getting the result of a list slice to an interpolated string or a range interpolated. In beginning perl Simon uses this example #!/usr/bin/perl # multilist.plx use warnings; use strict; my $mone; my $mtwo;

Re: issue with perl map function

2011-12-03 Thread John W. Krahn
Alexandre Chapoutot wrote: Hi all, I think you should use grep instead of map in this partciluar case I disagree. I also don't think you should top-post your replies. John -- Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage t

Re: Removing out new lines

2011-12-03 Thread John W. Krahn
Melvin wrote: Hi I have a file in the following format 111 222 333 Now I need to print the following output from the given input file as 111 222 333 $ echo "111 222 333" | perl -l040pe1 111 222 333 Is there a way I can do this in perl? I tried 2 ways (both ere essentially the same) 1) Par

Getting text from an XML file using XML::Twig

2011-12-03 Thread Jon Forsyth
Dear Beginners List, My code is based on an example from the XML::Twig documentation. I want to capture the text of a couple elements that have descendant elements and put this text in separate variables (one for each element's text). The problem in the code example is that all the text of the l

Re: issue with perl map function

2011-12-03 Thread Dr.Ruud
On 2011-12-03 13:38, Binish A.R wrote: split(/\s+/, $_)[1] Why put all these extra characters in? ( split )[ 1 ] But if you happen to like extra characters, here are some: echo '1 2 3 4' |perl -anle 'do{s/\((.)\)/$1/g;1while s{([+-])\((...)\)}{$1$2}||s/\(\(([^{}]+)\)\)/($1)/||s/\((.x.)\

Re: Removing out new lines

2011-12-03 Thread Rob Dixon
On 01/12/2011 14:43, Melvin wrote: Hi I have a file in the following format 111 222 333 Now I need to print the following output from the given input file as 111 222 333 Is there a way I can do this in perl? I tried 2 ways (both ere essentially the same) 1) Parsing the file and pushing the in

Assigning List variable when slicing a list.

2011-12-03 Thread flebber
Hi I can get the standard list slicing to work. But what about getting the result of a list slice to an interpolated string or a range interpolated. In beginning perl Simon uses this example #!/usr/bin/perl # multilist.plx use warnings; use strict; my $mone; my $mtwo; ($mone, $mtwo) = (1, 3); pr

Removing out new lines

2011-12-03 Thread Melvin
Hi I have a file in the following format 111 222 333 Now I need to print the following output from the given input file as 111 222 333 Is there a way I can do this in perl? I tried 2 ways (both ere essentially the same) 1) Parsing the file and pushing the inputs to a string array. However since

Re: printing existing png image to .pl file ?

2011-12-03 Thread Huub van Niekerk
On Sat, 03 Dec 2011 10:02:02 -0500, Zak Zebrowski wrote: > Yes. Also, you may want to look at imager, which doesn't require image > magic (which works better on some environments.). Also, the synopsis of > imager produces thumbnails with perl. > > Best > Zak Ok, thanks. I'll with that.. --

Re: issue with perl map function

2011-12-03 Thread Adams Paul
Sent from my LG phone Paul Johnson wrote: >On Fri, Dec 02, 2011 at 04:39:20AM -0500, sunita.prad...@emc.com wrote: >> Hi All >> >> My array @sympd_list has following lines : >> >> /dev/sdd 0BE0 07F:0 08C:D0 Unprotected N/Grp'd RW

Re: printing existing png image to .pl file ?

2011-12-03 Thread Zak Zebrowski
Yes. Also, you may want to look at imager, which doesn't require image magic (which works better on some environments.). Also, the synopsis of imager produces thumbnails with perl. Best Zak Sent from my iPod On Dec 3, 2011, at 1:55 AM, Huub van Niekerk wrote: > Hi, > > I want to use an ex

Re: issue with perl map function

2011-12-03 Thread Binish A.R
Isn't this all as simple as a split on each element? Something like: @sympd_dev_list = map { (split(/\s+/, $_)[1] } @sympd_list;   http://www.gnome.org/friends/banners/associate.png"; alt="Become a Friend of GNOME" border="0" /> From: "sunita.prad...@emc.com"

Re: issue with perl map function

2011-12-03 Thread Alexandre Chapoutot
Hi all, I think you should use grep instead of map in this partciluar case Regards Alex 2011/12/2 : > Hi All > >                My  array  @sympd_list has  following lines : > > /dev/sdd               0BE0 07F:0 08C:D0  Unprotected   N/Grp'd      RW     > 500 > /dev/sde