Re: subroutine call

2011-12-04 Thread John W. Krahn
Shlomi Fish wrote: in addition to the good advice that Uri gave you - some comments on your code. On Sun, 4 Dec 2011 07:40:09 -0600 Chris Stinemetz wrote: I have a program that I am working on improveing. The fist step I have taken is converting it in using the strict pragma. Now when this

Re: Getting text from an XML file using XML::Twig

2011-12-04 Thread Rob Dixon
On 03/12/2011 23:52, Jon Forsyth wrote: 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

Re: subroutine call

2011-12-04 Thread Dr.Ruud
On 2011-12-04 18:12, Shlomi Fish wrote: Chris wrote: my $cell = substr($market,0,index($market,"_")); print "$_ <", substr( $_, 0, index $_, "_" ), ">\n" for qw/ foo1 foo2_bar foo3_bar_baz /; foo1 foo2_bar foo3_bar_baz This can be more idiomatically (and more briefly) done us

Re: subroutine call

2011-12-04 Thread Shlomi Fish
Hi Chris, in addition to the good advice that Uri gave you - some comments on your code. On Sun, 4 Dec 2011 07:40:09 -0600 Chris Stinemetz wrote: > I have a program that I am working on improveing. The fist step I have > taken is converting it in using the strict pragma. > > Now when this subr

Re: subroutine call

2011-12-04 Thread Uri Guttman
On 12/04/2011 08:40 AM, Chris Stinemetz wrote: I have a program that I am working on improveing. The fist step I have taken is converting it in using the strict pragma. Now when this subroutine call is made I get the following compilation error: Global symbol "$cell" requires explicit package n

subroutine call

2011-12-04 Thread Chris Stinemetz
I have a program that I am working on improveing. The fist step I have taken is converting it in using the strict pragma. Now when this subroutine call is made I get the following compilation error: Global symbol "$cell" requires explicit package name at ./evdo.pl line 279. Global symbol "$cell"

Re: errors when importing eps file

2011-12-04 Thread Huub van Niekerk
On Sat, 03 Dec 2011 23:22:12 -0800, Jim Gibson wrote: > 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(

Re: errors when importing eps file

2011-12-04 Thread Huub van Niekerk
On Sun, 04 Dec 2011 14:15:44 +0530, Saravanan Murugaiah wrote: > Hi, > > Yes, the problem with the eps file, in general, if you open the .eps > file in notepad, you can see the below things: > > % > > %%Creator: Adobe Illustrator(R) 15.0 > %%For: welcome > %%CreationDate: 9/7/2011 > %%Bound

Re: errors when importing eps file

2011-12-04 Thread Saravanan Murugaiah
Hi, Yes, the problem with the eps file, in general, if you open the .eps file in notepad, you can see the below things: % %%Creator: Adobe Illustrator(R) 15.0 %%For: welcome %%CreationDate: 9/7/2011 %%BoundingBox: 0 0 367 321 %%HiResBoundingBox: 0 0 366.7198 320.6792 %%CropBox: 0 0 366.7198

Re: Getting text from an XML file using XML::Twig

2011-12-04 Thread Shlomi Fish
Hi Jon, On Sat, 3 Dec 2011 16:52:25 -0700 Jon Forsyth wrote: > 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 eleme

Re: Assigning List variable when slicing a list.

2011-12-04 Thread Uri Guttman
On 12/03/2011 08:12 PM, John W. Krahn wrote: my @summer = ( qw| January February March April May June July August September October November December | )[ 0, 1, 2 ); my @winter = ( qw| January February March April May June July August September October November December | )[ 5, 6, 7 ); my @sum