Re: Book Recommendation - XPath, XML,SQL, XQuery

2012-04-27 Thread Sayth Renshaw
Just an update I also found this book. http://www.amazon.com/Beginning-Perl-Web-Development-Professional/dp/1590595319 Beginning Perl Web Development: From Novice to Professional (Beginning: From Novice to Professional) [Paperback] Steve Suehring it's a good overview book but does cover a lot o

LibXML error CPAN. XML::GDOME

2011-12-13 Thread Sayth Renshaw
I was trying to use RTF::HTMLConverter https://metacpan.org/module/RTF::HTMLConverter, however it also use XML::GDOME.https://metacpan.org/module/XML::GDOME Cannot seem to install XML::GDOME and I am wondering if anyone has advice on how to get it installed. The exact errors. I am on ubuntu 11.10

Re: Better Answer for This Question - Gabor's Chapter4 lecture 6

2011-12-09 Thread Sayth Renshaw
On Sat, Dec 10, 2011 at 8:28 AM, Sayth Renshaw wrote: > > > On Sat, Dec 10, 2011 at 7:44 AM, Rob Dixon wrote: > >> On 09/12/2011 11:35, flebber wrote: >> >>> >>> Okay I have a working version for an answer to Gabor's exercises in >>> his u

Re: matplotlib

2011-06-23 Thread Sayth Renshaw
On Thu, Jun 23, 2011 at 6:32 AM, Bryan R Harris wrote: > > > I much prefer perl to python given my recent forays into that language > (python's regex is awful!), however it has an excellent plotting package > that is very similar to matlab but supports things like marker alphas.  It's > called mat

Re: Problem with SDL::Perl

2011-06-13 Thread Sayth Renshaw
On Tue, Jun 14, 2011 at 2:41 AM, Adam Fairbrother wrote: > Hi, > > It's been a week since I asked about this and No one has responded,  Did I > ask incorrectly or in the wrong mailing list? > > Any help that could be provided would be appreciated. > > Thanks, > > #

Re: how to use regexp to match symbols

2011-06-13 Thread Sayth Renshaw
> I have a list of mp3 files in my computer and some of the file names consists > of  a bracket like this "darling I love [you.mp3" > I wish to check them for duplicates using the script below, but theres error > msg like this "Unmatched [ in regex; marked by <-- HERE in m/only one brace > here[

Re: kills Padre 0.84 on execution

2011-06-12 Thread Sayth Renshaw
> If you go to Tools / Preferences / Run Parameters and check 'Use > external window for execution' then Padre will start up a new cmd window > for execution which will respond as you expect. > > Rob > Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-m

kills Padre 0.84 on execution

2011-06-12 Thread Sayth Renshaw
I created a simple script to test whether the Padre output console would except input via . After creating the script I pressed F5; no output is put to the console. I waited about 30 seconds - 1 min still nothing I stopped the process executing. This was the script. #!/usr/bin/perl print " Give

Re: using Perl, How to search for files in my computer

2011-06-12 Thread Sayth Renshaw
> Try: > > my @Music_files = (); > > use File::Find; > find( \&want_mp3, 'd:\\' ); > print "$_\n" for sort @Music_files; > > sub want_mp3 { >  push @Music_files, $File::Find::name if $_ =~ /\.mp3$/; > } > > > -- > Just my 0.0002 million dollars worth, >  Shawn > > Confusion is the first step of

Re: using Perl, How to search for files in my computer

2011-06-12 Thread Sayth Renshaw
Actually got it working. You would need to use File::Find to search sub directories however. #!\usr\bin\perl use warnings; use strict; use diagnostics; use File::List; my $mp3; my @musiFiles; $mp3 = new File::List("C:/Users/RenshawFamily/maven/Music/Foo Fighters"); my @musicFiles = @{ $mp3->find(

Re: using Perl, How to search for files in my computer

2011-06-12 Thread Sayth Renshaw
On Sun, Jun 12, 2011 at 8:40 PM, eventual wrote: > Thanks, > I've read perldoc File::Find but I dont understand. > So If I wish to search for "mp3" in d:\ and all its sub-directories, and to > print it out if found, > How should I write? > Thanks > > > From: Shawn H Corey > To: beginners@perl.or

Re: Uninitialized value in concatenation

2011-06-08 Thread Sayth Renshaw
> That looks fine, but Perl is trying to interpolate $mynames (which > hasn't been initalised) into the string instead of indexing an element > of @mynames. > > You may be running an old perl. Please check your version with > >  perl -v I have 5.12.3 on this PC, The strawberry perl release. > > a

Re: Uninitialized value in concatenation

2011-06-08 Thread Sayth Renshaw
> Hello Sayth > > The program you have published seems to work fine. Are you certain that > the print line inside the foreach loop is as you say? > > Rob > This is copied direct from my editor. #!/usr/bin/perl use strict; use warnings; use Data::Dumper; my @mynames = qw/fred betty barney dino wi

Uninitialized value in concatenation

2011-06-08 Thread Sayth Renshaw
Working through the exercises in Learning Perl. Chapter 3 exercise 2. Basically have to look up a set of names and return an output list of based on the numbers selected by the user. 1 would print fred etc. For the longest time I had the below code but couldn't figure out the body of the foreach l

Re: practical perl guides

2011-06-01 Thread Sayth Renshaw
On Wed, Jun 1, 2011 at 8:04 PM, Sayth Renshaw wrote: >> You don't need Microsoft Visual Studio to install perl modules. I will >> go on a limb and assume here you're thinking of using MS Visual C >> compiler to compile perl and subsequent c modules, but even that'

Re: practical perl guides

2011-05-31 Thread Sayth Renshaw
Shlomi> stuff from CPAN without having to resort to a lot of proprietary Shlomi> and costly software from Microsoft. What is the costly software that you would need to install? Sayth -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.o

Re: Conversion program decimal to hex and oct using assertions

2011-05-31 Thread Sayth Renshaw
On Tue, May 31, 2011 at 3:45 PM, Uri Guttman wrote: >>>>>> "SR" == Sayth Renshaw writes: > >  SR> my $hex = sprintf("ox%o2x\n", $number); > > why is the \n there? you just chomp it off. better to not put it in the > string to begin with. &

Re: Conversion program decimal to hex and oct using assertions

2011-05-30 Thread Sayth Renshaw
On Tue, May 31, 2011 at 3:24 PM, Michael Greb wrote: > On Tue, May 31, 2011 at 02:27:53PM +1000, Sayth Renshaw wrote: >> This there formula $oct_perm_str = sprintf "%o", $perms; >> However it is not working for me. I have used my $oct = sprintf "%0", >> $

Conversion program decimal to hex and oct using assertions

2011-05-30 Thread Sayth Renshaw
Hi I am on my way to learning perl, and am reading the beginning perl book. In chapter 2 I am following the exercises (http://docs.google.com/viewer?url=http%3A%2F%2Fblob.perl.org%2Fbooks%2Fbeginning-perl%2F3145_Chap02.pdf), question 2 asks for a hex converter. As fun, I thought it would be useful

Re: practical perl guides

2011-05-27 Thread Sayth Renshaw
On Fri, May 27, 2011 at 9:12 PM, Leo Lapworth wrote: > Hi, > > On 27 May 2011 10:26, Shlomi Fish wrote: >> On Friday 27 May 2011 09:35:32 Sayth Renshaw wrote: >>> Which Perl Should I use ActivePerl or Strawberry Perl on Windows? 5.10 or >>> 5.12? >> >&

Re: practical perl guides

2011-05-26 Thread Sayth Renshaw
On Fri, May 27, 2011 at 3:35 PM, Sayth Renshaw wrote: > On Fri, May 27, 2011 at 3:30 PM, shawn wilson wrote: >> On May 27, 2011 1:28 AM, "shawn wilson" wrote: >>> >>> >>> On May 27, 2011 12:21 AM, "Sayth Renshaw" wrote: >>>

practical perl guides

2011-05-26 Thread Sayth Renshaw
Hi Wanted to ask a question about practical beginners guides for perl. I have found a read the baisc beginners guides here http://www.perl.com/pub/2008/05/07/beginners-introduction-to-perl-510-part-2.html. Was hoping to expand on this with some practical and hands on guides to perl. personally I

practical perl guides

2011-05-26 Thread Sayth Renshaw
Hi Wanted to ask a question about practical beginners guides for perl. I have found a read the baisc beginners guides here http://www.perl.com/pub/2008/05/07/beginners-introduction-to-perl-510-part-2.html. Was hoping to expand on this with some practical and hands on guides to perl. personally I

practical perl guides.

2011-05-26 Thread Sayth Renshaw
Hi Wanted to ask a question about practical beginners guides for perl. I have found a read the baisc beginners guides here http://www.perl.com/pub/2008/05/07/beginners-introduction-to-perl-510-part-2.html. Was hoping to expand on this with some practical and hands on guides to perl. personally I