What is output:
sub foo($x, ?$y, [EMAIL PROTECTED]) {
say "x = $x; y = $y; z = @z[]";
}
my @a = (1,2,3);
foo($x, @a);
Thanks,
Luke
Luke Palmer <[EMAIL PROTECTED]> wrote:
> What is output:
>
> sub foo($x, ?$y, [EMAIL PROTECTED]) {
> say "x = $x; y = $y; z = @z[]";
> }
>
> my @a = (1,2,3);
> foo($x, @a);
IANALarry, but I'd think
x = ($x's value); y = 1 2 3; z =
The $y is implicitly typed Any, and
# New Ticket Created by Jarkko Hietaniemi
# Please include the string: [perl #34351]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/rt3/Ticket/Display.html?id=34351 >
Extra 0xA0 characters (Latin-1 no-break-spaces?) in the comments of
a header file.
# New Ticket Created by Jarkko Hietaniemi
# Please include the string: [perl #34352]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/rt3/Ticket/Display.html?id=34352 >
The ld -s flag caused all symbol information to be stripped from
the libraries, wh
Jarkko Hietaniemi <[EMAIL PROTECTED]> wrote:
> Extra 0xA0 characters (Latin-1 no-break-spaces?) in the comments of
> a header file. Non-fatal but probably not intended, either. Patch
> attached.
$ file noa0.pat.gz
noa0.pat.gz: data
Please resend,
thanks
leo
Please no more checkins.
Thanks,
leo
Leopold Toetsch via RT wrote:
> Jarkko Hietaniemi <[EMAIL PROTECTED]> wrote:
>
>
>>Extra 0xA0 characters (Latin-1 no-break-spaces?) in the comments of
>>a header file. Non-fatal but probably not intended, either. Patch
>>attached.
>
>
> $ file noa0.pat.gz
> noa0.pat.gz: data
>
> Please resen
Jarkko Hietaniemi <[EMAIL PROTECTED]> wrote:
> The ld -s flag caused all symbol information to be stripped from
> the libraries, which caused all the Python dynclass tests to fail.
> (The -s can be used in Perl 5 since the XS builds up a separate
> "symbol table".) Patch attached.
Thanks, applie
Ron Blaschke wrote:
> Leopold Toetsch wrote:
>> Ron Blaschke <[EMAIL PROTECTED]> wrote:
>>> - adds correct linkage for gpm
>>> Some tests fail, though
>>> t\pmc\bigint.t 12 307221 12 57.14% 5-10 13-15 18 20-21
>> Is there any indication what's going wrong?
> Not yet, but I'
Here are the current test results on my WinXP, VC++ 7.1 box.
Failed TestStat Wstat Total Fail Failed List of Failed
---
t\dynclass\gdbmhash.t13 332813 13 100.00% 1-13
t\dynclass\pybuiltin.t6
On Sat, Mar 05, 2005 at 02:39:06PM -0700, Luke Palmer wrote:
> Thanks, applied.
> Luke
Thanks a lot for applying the patches to svn.perl.org. :-)
This is jsut a heads-up to say that svn.openfoundry.org is back,
so committers, please commit to openfoundry.org as usual.
Cheers,
/Autrijus/
pgpYRR
CVS is tagged, tarball is on the way to pause.
leo
On behalf of the Parrot team I'm proud to announce the release of
Parrot 0.1.2.
What is Parrot?
Parrot is a virtual machine aimed at running Perl6 and other dynamic
languages.
Parrot 0.1.2 contains a lot of new stuff:
- New string handling code. Strings now have charset and encoding
- Parts of a ge
On Sat, Mar 05, 2005 at 02:39:06PM -0700, Luke Palmer wrote:
> Garrett Rooney writes:
> > Garrett Rooney wrote:
> >
> > >Assuming the spec is correct, here's a patch to add some more tests to
> > >t/op/string_interpolation.t.
> >
> > Of course, those should have been todo_is tests... Here's the
Autrijus Tang wrote:
On Sat, Mar 05, 2005 at 02:39:06PM -0700, Luke Palmer wrote:
Garrett Rooney writes:
Garrett Rooney wrote:
Assuming the spec is correct, here's a patch to add some more tests to
t/op/string_interpolation.t.
Of course, those should have been todo_is tests... Here's the right p
One issue I've always struggled with is how to properly test code that's
not in the form of a module - in other words, scripts. I use the usual
hacky, temporary methods to test my code as I write it or when I find a
bug (pring statements, commenting out things, etc), and occasionally the
perl
> One issue I've always struggled with is how to properly test code that's
> not in the form of a module - in other words, scripts. I use the usual
Take a look at what I do with prove in Test::Harness. It's not very
in-depth but should give you a starting point.
--
Andy Lester => [EMAIL PRO
On Sat, Mar 05, 2005 at 03:25:55PM -0800, Darren Duncan wrote:
> I wish to help out the development of Perl 6, initially running under
> Pugs, by supplying test code of sorts, written in Perl 6, that we
> would attempt to run under Pugs (and eventually Parrot) to ensure
> that it works correctly
On Sun, Mar 06, 2005 at 09:35:07AM -0800, Ofer Nave wrote:
> One issue I've always struggled with is how to properly test code that's
> not in the form of a module - in other words, scripts. I use the usual
> hacky, temporary methods to test my code as I write it or when I find a
> bug (pring s
# New Ticket Created by Lambeck
# Please include the string: [perl #34356]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/rt3/Ticket/Display.html?id=34356 >
It would be nice to have a module that returns the installed parrot config.
Other applicatio
Ok, this might be useless, but maybe you like to know:
All tests successful, 1 test and 64 subtests skipped.
Files=135, Tests=2252, 798 wallclock secs (299.99 cusr + 96.80 csys =
396.79 CPU)
On a PIII 1Ghz/256MB RAM, running Slackware Linux
Cheers,
Alberto
Leopold Toetsch wrote:
On behalf of the
Already exists.
perldoc parrot/library/config.imc
Regards.
Lambeck (via RT) wrote:
# New Ticket Created by Lambeck
# Please include the string: [perl #34356]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/rt3/Ticket/Display.html?id=34356 >
It would b
Michael G Schwern wrote:
Now, nobody says this means your program has to be split up into a whole
bunch of files and become a full fledged module. You can write something
like this.
#!/usr/bin/perl -w
use Getopt::Long;
my %Opts;
GetOptions(\%Opts, "test");
s
Whoops, had already cd'd...
it's actually in 'runtime/parrot/library/config.imc'
Is this what you're looking for?
William Coleda wrote:
Already exists.
perldoc parrot/library/config.imc
Regards.
Lambeck (via RT) wrote:
# New Ticket Created by Lambeck # Please include the string: [perl
#34356]
#
[Quoting Michael G Schwern, on March 6 2005, 10:32, in "Re: testing non-modu"]
> Or if you want to be super portable you can do this:
>
> use Test::Output;
> local @ARGV = qw(some args);
> stdout_is( sub { do "bin/myprogram" }, 'wibble' );
>
> Which has the nice side benefit of
Subject: Re: testing non-modules
From: Johan Vromans <[EMAIL PROTECTED]>
To: perl-qa@perl.org
}[Quoting Michael G Schwern, on March 6 2005, 10:32, in "Re: testing non-modu"]
}> Or if you want to be super portable you can do this:
}>
}> use Test::Output;
}> local @ARGV = qw(some args);
}
Michael G Schwern wrote:
I think it would be a powerful addition to CPAN. If you go to the
distribution page for any module - say, for example, Class::DBI
(http://search.cpan.org/~tmtm/Class-DBI/)
Trouble right there. Now search.cpan.org has to run untrusted code so
a jail would have to be constr
Hello there.
I once had to organize the stress testing of a web based application.
The client wanted to know whether the server would handle a given number
of concurrent sessions and how long would the users have to wait in
front of their stalled browser if such a situation ever happened.
The app
This might be it - how do I access the data ?
Am Sonntag, 6. MÃrz 2005 20:13 schrieb Will Coleda via RT:
> Whoops, had already cd'd...
>
> it's actually in 'runtime/parrot/library/config.imc'
>
> Is this what you're looking for?
>
> William Coleda wrote:
> > Already exists.
> >
> > perldoc parrot
In Parser.hs:589, we have the code:
parseParamList parse =parseParenParamList parse
<|> parseNoParenParamList parse
parseParenParamList parse = do
[inv, norm] <- maybeParens $ parseNoPare
Here's the sample from the perldoc:
.sub _some
# store the config data into $P0
$P0 = _config()
# Retrieve and print a key
$P1 = $P0["cc"]
print "Your C compiler is "
print $P1
print "\n"
.end
.include "library/config.imc"
Which, when run on m
Okay, I have now seen the responses to my posting from Stevan Little
and Autrijus; thanks to both of you for those. I also read parts of
the March 6 IRC log where concerns I raised in my 4th question was
discussed.
I'll start showing up on IRC soon, though I have to find a good Mac
OS X clien
On Sun, Mar 06, 2005 at 16:40:46 -0800, Darren Duncan wrote:
> I'll start showing up on IRC soon, though I have to find a good Mac
> OS X client for IRC first (I'm still used to email as a primary
> communication medium).
I'm very happy with colloquy (http://colloquy.info). You can
probably get
On Sun, Mar 06, 2005 at 02:13:09 -0700, Luke Palmer wrote:
> What is output:
>
> sub foo($x, ?$y, [EMAIL PROTECTED]) {
> say "x = $x; y = $y; z = @z[]";
> }
>
> my @a = (1,2,3);
> foo($x, @a);
And is
$a ==> foo $x;
The same?
--
() Yuval Kogman <[EMAIL PROTEC
Ive written some tests that verify writing to STDOUT, etc,
which were easy to do as `$X ... ` jobs.
but these dont get covered by default, so my coverage results are not
what they should be.
I tried to do the following, but it didnt work out.
my @args = ($^X,
(defined %Devel::Cover::)
I've been reading up on perl test tools all day, and I have a question
about Test::More.
Doesn't is_deeply do everything eq_array and eq_hash does and more? It
looks like is_deeply has the same exact interface and purpose, except
that it accepts both arrayrefs and hashrefs. So why would you n
On Sun, Mar 06, 2005 at 09:54:44PM +0100, S?bastien Aperghis-Tramoni wrote:
> Instead of running the code on one server, where it's a problem, why
> not running on machines where all prereq modules are already installed,
> i.e. on machines where one *wants* to install the module ? Let's add an
>
On Sun, Mar 06, 2005 at 10:01:19PM +0100, C?dric Bouvier wrote:
> I have something almost working right now. I'd like to upload it to CPAN
> (after I have at least improved the documentation kindly written by
> Module::Starter, that is) but I'd like your enlightened opinion on what
> name it should
On Sun, Mar 06, 2005 at 10:32:26AM -0800, Michael G Schwern wrote:
> #!/usr/bin/perl -w
>
> use Getopt::Long;
>
> my %Opts;
> GetOptions(\%Opts, "test");
>
> sub main {
> return if $Opts{test};
>
> ...the program using the
Yitzchak Scott-Thoennes wrote:
I'd make that just:
sub main {
...the program using the functions below...
}
main() unless caller;
sub some_function { ... }
sub some_other_function { ... }
Nice trick. I just tested it.
[EMAIL PROTECTED] ~/test] cat foo.pl
#!/usr/bin/perl -w
use strict;
m
On Sun, Mar 06, 2005 at 02:13:09AM -0700, Luke Palmer wrote:
: What is output:
:
: sub foo($x, ?$y, [EMAIL PROTECTED]) {
: say "x = $x; y = $y; z = @z[]";
: }
:
: my @a = (1,2,3);
: foo($x, @a);
I think it should say something like:
Use of undefined value at foo line
41 matches
Mail list logo