Re: ExtUtils::MakeMaker, execute Perl code during make test

2010-04-16 Thread Philip Potter
On 16 April 2010 02:05, Steve Bertrand st...@ibctech.ca wrote: On 2010.04.15 18:50, Steve Bertrand wrote: Hi all, In one of my projects, I've written a test file t/22-upgrade.t. [..snip..] However, when I run make test, the Perl code for print does not execute. Replying my own post, this

Re: how to create a hash on the fly

2010-04-16 Thread Philip Potter
On 16 April 2010 03:17, Steve Bertrand st...@ibctech.ca wrote: On 2010.04.15 03:37, raphael() wrote: But as a beginning Perl programmer I find references extremely complicated. Although I have to learn them sometime. Although I Am Not A Programmer, if you do actually desire spending time on

references to operators?

2010-04-16 Thread Tim Bowden
I've got a nested hash data structure, and I want to create tests for many of the attributes within that data structure, but I'm not sure of the best way to do that. Example: my $dataStructure = {'GroupA'={ 'element1'={ 'attrib1'='someValue', 'attrib2'='otherValue'}, 'element2'={

Re: how to create a hash on the fly

2010-04-16 Thread Tim Bowden
On Fri, 2010-04-16 at 08:40 +0100, Philip Potter wrote: Great post, Steve. Does perl-beginners have a website where this could be archived for later reference? Phil http://www.nntp.perl.org/group/perl.beginners/ Tim Bowden -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For

Re: references to operators?

2010-04-16 Thread Shlomi Fish
Hi Tim, On Friday 16 Apr 2010 12:06:31 Tim Bowden wrote: I've got a nested hash data structure, and I want to create tests for many of the attributes within that data structure, but I'm not sure of the best way to do that. Example: my $dataStructure = {'GroupA'={ 'element1'={

Re: references to operators?

2010-04-16 Thread Tim Bowden
On Fri, 2010-04-16 at 12:51 +0300, Shlomi Fish wrote: Hi Tim, On Friday 16 Apr 2010 12:06:31 Tim Bowden wrote: I've got a nested hash data structure, and I want to create tests for many of the attributes within that data structure, but I'm not sure of the best way to do that.

RE: XML Parser Error

2010-04-16 Thread Wagner, David --- Senior Programmer Analyst --- CFS
-Original Message- From: Open Source [mailto:open.sou...@gmx.com] Sent: Thursday, April 15, 2010 11:41 To: Beginners, Perl Subject: XML Parser Error I'm getting this error: Undefined subroutine XML::Simple::XMLin called at ./sample.pl line 3. Here's my code and input file: use

Re: XML Parser Error

2010-04-16 Thread Brad Baxter
On 4/15/2010 1:40 PM, Open Source wrote: I'm getting this error: Undefined subroutineXML::Simple::XMLin called at ./sample.pl line 3. Here's my code and input file: use XML::Simple; use Data::Dumper; $data = XMLin(sample.xml); print Dumper($data); ?xml version='1.0'? employee nameJohn/name

Re: Not understanding deleted symbol key access

2010-04-16 Thread C.DeRykus
On Apr 15, 8:57 am, linuxexper...@gmail.com (Linux Expert) wrote: I'm following an example in Mastering Perl pg 130.  He demonstrates setting package variables $m and $n and displays their contents as well as their keys held in the symbol table.  He then proceeds to delete the symbol table

Re: ExtUtils::MakeMaker, execute Perl code during make test

2010-04-16 Thread Steve Bertrand
On 2010.04.16 03:36, Philip Potter wrote: On 16 April 2010 02:05, Steve Bertrand st...@ibctech.ca wrote: On 2010.04.15 18:50, Steve Bertrand wrote: What I've done to 'rectify' the issue so that it is clear that the config files differ, is rename the test to the highest test number

Re: ExtUtils::MakeMaker, execute Perl code during make test

2010-04-16 Thread Philip Potter
On 16 April 2010 13:20, Steve Bertrand st...@ibctech.ca wrote: I use prove often, usually when I want to quickly and non-verbosely (-Q) work with a single test file that I'm currently adding new tests to, or to ensure existing tests still pass if making changes to a function. What I want to

Re: XML Parser Error

2010-04-16 Thread Open Source
- Original Message - From: Brad Baxter Sent: 04/16/10 01:31 AM To: beginners@perl.org Subject: Re: XML Parser Error On 4/15/2010 1:40 PM, Open Source wrote: I'm getting this error: Undefined subroutineXML::Simple::XMLin called at ./sample.pl line 3. Here's my code and input

Re: ExtUtils::MakeMaker, execute Perl code during make test

2010-04-16 Thread Steve Bertrand
On 2010.04.16 09:15, Philip Potter wrote: On 16 April 2010 13:20, Steve Bertrand st...@ibctech.ca wrote: I use prove often, usually when I want to quickly and non-verbosely (-Q) work with a single test file that I'm currently adding new tests to, or to ensure existing tests still pass if

Re: ExtUtils::MakeMaker, execute Perl code during make test

2010-04-16 Thread Philip Potter
On 16 April 2010 14:38, Steve Bertrand st...@ibctech.ca wrote: On 2010.04.16 09:15, Philip Potter wrote: What are you *actually* trying to do? What are you testing and why does this test require you to print output to the user under make test? This particular test: - checks to see if an

Re: ExtUtils::MakeMaker, execute Perl code during make test

2010-04-16 Thread Steve Bertrand
On 2010.04.16 11:32, Philip Potter wrote: On 16 April 2010 14:38, Steve Bertrand st...@ibctech.ca wrote: This particular test: It sounds like your test isn't a test, it's a setup tool. Tests in projdir/t are there to test if the stuff in projdir/lib or projdir/blib works, and shouldn't be

Re: html print

2010-04-16 Thread Shlomi Fish
Hi Shawn, first of all I should note that I suspect that you have been under some stress, and you're taking it on me. It's quite unlike you. Is this indeed the case? Now I'll reply to what you say. On Tuesday 13 Apr 2010 16:07:26 Shawn H Corey wrote: Shlomi Fish wrote: Which arguments do