promising, but it seemed to be a compile-time tool.
Cheers,
Ovid
=
Silence is Evilhttp://users.easystreet.com/ovid/philosophy/indexdecency.htm
Ovid http://www.perlmonks.org/index.pl?node_id=17000
Web Programming with Perl http://users.easystreet.com/ovid
to reach
for another
language, regardless of how easy the languages are to integrate?
Cheers,
Ovid
=
Silence is Evilhttp://users.easystreet.com/ovid/philosophy/indexdecency.htm
Ovid http://www.perlmonks.org/index.pl?node_id=17000
Web Programming with Perl http
--- Jon Ericson [EMAIL PROTECTED] wrote:
Austin Hastings [EMAIL PROTECTED] writes:
s/conses/consensus/g ?
I assumed it was a Lisp reference. ;-)
contheth?
(No, I'm not really *quite* that clueless.)
Cheers,
Ovid
=
Silence is Evil
http://users.easystreet.com/ovid
make all
three examples work from the one regular expression. Is there more
here that I am not seeing (I confess to not having paid close
attention.)
And feel free to correct my syntax.
Cheers,
Ovid
=
If this message is a response to a question on a mailing list, please send
follow up
--- Matt Fowles [EMAIL PROTECTED] wrote:
Logic Programming in Perl 6
Ovid asked what logic programming in perl 6 would look like. No
answer
yet, but I suppose I can pick the low hanging fruit: as a
limiting case
you could always back out the entire perl 6 grammar and insert
, regexen and makefiles all dance around
logic programming -- well, makefiles sort of stumble -- but if LP was
more readily available, people would be more likely to appreciate it.
Unfortunately, while Prolog is a piece of cake to learn, this thread
made my head hurt.
Cheers,
Ovid
If this message
been thinking that this would be a fun project for me to cut my
Parrot teeth on. Specifically, porting AI::Prolog. However, porting a
proper WAM (Warren Abstract Machine) would be a better choice.
Now to find the tuits :)
Cheers,
Ovid
--
If this message is a response to a question on a mailing
on that :)
In any event, where the heck do I find the docs for say and print?
Perl6::say doesn't default to $_, but I'm not sure if that
implementation is correct, either.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web
since a
lot of code won't even compile.
And please, if you have commit access, feel free to correct my code and
add more. I don't want to do this by my
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming
since a
lot of code won't even compile.
And please, if you have commit access, feel free to correct my code and
add more. I don't want to do this by myself.
http://svn.openfoundry.org/pugs/examples/pleac/
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
, $d); # whoops!
That's going to confuse the heck out of people. If we do as Perl5
does, we'll merely be swapping values since aliasing really doesn't
make much sense here, but that means for this case, := == =.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please
,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
not entirely convinced that not allowing roles to assign trust is a
good thing. It feels a bit arbitrary.
Is there a compelling reason why roles should not do this?
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web
like it would be a nice
compromise.
Is this legal syntax?
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
*and* what it provides. Are Perl 6 roles
really going to blindly export everything they contain? This seems a
serious mistake. I didn't see anything addressing this issue in
http://www.perl.com/pub/a/2004/04/16/a12.html?page=12
Cheers,
Ovid
--
If this message is a response to a question on a mailing
on the doorstep of logic
programming but, if I recall correctly, a decision was already made
that Perl 6 wouldn't be delayed for its inclusion. A sad, but
necessary choice.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list
agree here. You have to have, at
minimum, one selector for each new datatype if for no other reason than
to cast a string to your new data type. Otherwise, your data types
would only be constants because you would have no way of assigning a
value.
Cheers,
Ovid
--
If this message is a response
Larry pointed out that this topic is better suited for perl6-language instead
of perl6-users, so I'm forwarding this along. Feel free to exercise your
delete key.
Cheers,
Ovid
-- If this message is a response to a question on a mailing list, please send
follow up questions to the list
-strings
Ooh, looks promising. In that scenario, is a hash viewed as an array of pairs?
If so, we could potentially have logic programming matching just about any
abitrary data structure.
Cheers,
Ovid
-- If this message is a response to a question on a mailing list, please send
follow up
can also mixin a precomposed set of roles:
$fido does Sentry | Tricks | TailChasing | Scratch;
Should that be the following?
$fido does Sentry Tricks TailChasing Scratch;
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http
want those behaviors to bleed
over to the other layers of my application. Whether or not this is a
clean way of looking at the problem, I don't know.
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
like we'd need return values to guarantee that the
returned type is exactly what we claimed.
method foo(Int $bar, Int $baz) returns Int {
return $foo/$baz;
}
Since the return value might be a Float, does it get cast to an Int,
thereby discarding information?
Cheers,
Ovid
--
Buy the book
the tautology,
when complex types are involved, what any user needs is dependent on
what that user needs.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com
If I call this:
if $class.^can('wibble') { ... }
Does Perl 6 return false if that's only an instance method? Will the
WALK iterator returned by .^can return references to instance methods?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http
--- Jonathan Lang [EMAIL PROTECTED] wrote:
Ovid wrote:
If I call this:
if $class.^can('wibble') { ... }
Does Perl 6 return false if that's only an instance method? Will
the
WALK iterator returned by .^can return references to instance
methods?
As I understand it, Perl 6
this merely be a strange rendering artifact?
Cheers,
Ovid
[1] Well, the monospaced bit isn't since I'm not used to programmers
programming in word processors instead of text editors. Perhaps I'm
spoiled :)
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http
/polymorphism.png
Glad to see the nice work, though.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
and the £ merely things which can be added by
programmers by changing the grammar? That was one of the design goals
of the language.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius
.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
difference and reflection can't tell you that
these are radically different.
The only difference is semantic, and that's what the programmer has to
provide. Otherwise, we're all out of jobs :)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http
semantic
meaning isn't attached, restricting me to roles doesn't work.
Requiring others to use roles in this case is also too restrictive.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http
entire language from a pidgin to a creole),
then we might as well consider that a couple of extra letters to
introduce clarity may not be all that bad.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal
papers, etc.?
This this:
http://use.perl.org/~luqui/journal/27362
Luke makes some interesting comments, but you'll want to click the
Great Multimethod Debate link (http://tinyurl.com/5hm4ze).
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http
5 with tie, but tied variables are no
fun)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
--- Moritz Lenz [EMAIL PROTECTED] wrote:
Ovid wrote:
Anyone have any idea why Google is not indexing the official Perl 6
documentation at perlcabal.org/syn? I checked the robots.txt and
it
looks fine:
http://www.perlcabal.org/robots.txt
But the search box on http
--- Jonathan Worthington [EMAIL PROTECTED] wrote:
Ovid wrote:
By default, block parameters (including $_) are readonly,
I hope that is a deep readonly? In other words, if $_.position returns
an array reference, can I mutate a value in that reference and the
state of $_ is thereby changed
.
Now it's my turn to say that I can't follow that statement.
Could you give some hints on these fascinating wins, please.
I explain in more detail at http://use.perl.org/~Ovid/journal/36667
You asked why I think that constraints would need to modify the
variable (would invocant be the right term
{ return $_[0]++ }
sub no_side_effect { my $x = shift; return $x++ }
In Perl 6, since arguments to subs would have to be specifically
written as 'is rw', we might be able to minimize this issue, but I
don't know if we can stop it.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog
, but with some values removed.
How do I do that in Perl 6? I can't see that in the docs. Clearly we
don't this to be done destructively as I suspect this will break
autothreading, but building new junctions based on old junctions seems
reasonable.
Cheers,
Ovid
--
Buy the book - http
junctions. grep and map would make that trivial.
If I've misunderstood, feel free to print this out and burn it :)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com
--- On Mon, 30/6/08, Ovid [EMAIL PROTECTED] wrote:
--- On Sun, 29/6/08, Patrick R. Michaud
[EMAIL PROTECTED] wrote:
Do Cgrep and Creverse act like the
Cjoin method, in that
they work for CAny object and not just objects
of
type CList?
In other words,, should C $x.grep
appears to work (I've only
checked it superficially), so why not use that to make some of these tests a
bit easier to write? Are we trying to avoid loading modules while testing core
features?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog
be happy to update that test and send a patch.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
) {...} # same thing, basically
my %hash;
%hashfoobar = foo; # duh
So is this a bug?
Revision: 34706
$ uname -a
Darwin curtis-poes-computer-3.local 9.5.1 Darwin Kernel Version 9.5.1: Fri Sep
19 16:19:24 PDT 2008; root:xnu-1228.8.30~1/RELEASE_I386 i386
Cheers,
Ovid
--
Buy
I really don't think this is a bug, but it did confuse the heck out of me at
first. This *is* expected behavior due to how {} is interpolated in strings,
yes?
$ perl6 -e 'my $foo = foo;say ~ $foo ~ '
foo
$ perl6 -e 'my $foo = foo;say { ~ $foo ~ }'
~ foo ~
Cheers,
Ovid
--
Buy
- Original Message
From: Ovid publiustemp-perl6interna...@yahoo.com
This patch implements the .trim() method for strings.
Now that I'm reading S29, I see there is no .trim() method there. I got that
because it was referenced in pugs in the cookbook (not in tests, though
,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
it, though. You'd have to figure out which methods to call. Or all could be
allowed and $string.trim(:leading0) could all $string.rtrim internally.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter
wanted to take that lead...
How about .trim(:start) and .trim(:end)?
So if:
1. No params, trim all
2. :start or :end, only trim that bit (not a negated option :)
3. If both, goto 1
Sound good?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog
of how one *would* properly override
trim's concept of whitespace
Change your locale to one with a different concept of whitespace (are there
any?)
Otherwise, would this be trying to stuff too much into one function?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog
: []
Note that this output is from my locally hacked version of Test.pm which is
kind enough to tell you what the failure is. I'll submit a patch for that
later.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid
or it will be LEFT out. (I kill me. I really do :)
Beers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
/Protestant implementation. I'll submit
a patch for trim with the spectest data updated and work on the rest after the
dust settles.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter
- Original Message
From: jesse je...@fsck.com
On Mon, Jan 12, 2009 at 07:01:25AM -0800, Ovid wrote:
I could optionally make the following work:
$string.trim(:leading0);
$string.trim(:trailing0);
Alternatively, those could be ltrim() and rtrim().
'left
- Original Message
From: Larry Wall la...@wall.org
On Mon, Jan 12, 2009 at 05:04:50AM -0800, Ovid wrote:
: ...the trivial $string.trim and trim($string) case.
Hmm, I'd think .trim should work like .chomp, and return the trimmed
string without changing the original. You'd use
this:
use Core 'MyCore';
And have that override core classes lexically.
That solves the but I want it MY way issue that many Perl and Ruby
programmers have, but they don't shoot anyone else in the foot.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog
What should this output?
my @array = ' foo ', ' bar ';
@array .= trim;
say @array.perl;
And what if I have an array of hashes of hashes of arrays?
Currently you can call 'trim' on arrays, but it's a no-op. Similar issues with
chomp and friends.
Cheers,
Ovid
--
Buy the book
issues
with chomp and friends.
It should probably say No such method. We have hyperops now to apply
scalar operators to composite values explicitly:
@array».=trim
Won't that fail with 'No such method' on an array of hashes? Or are hyperops
applied recursively?
Cheers,
Ovid
--
Buy
issues at times when composition is unclear.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
or it needs to not be allowed (and thus fail with AoHoA and similar
complex data structures).
By the way, good work on this. Everyone loves useful string functions.
Thanks. It's been lots of fun :)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog
that email.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
be expensive and have unwanted side-effects (what
do you mean my hash had a reference to your ORM data?).
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
odd since every
other function exported uses positional parameters.
Thoughts?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http
method
has :ok in it, this shouldn't impact the overall plan, right?
Side note: for the desugar, I'd still prefer we go with 'have/want' instead of
'got/expected'. We've been wanting to do this with TAP for a while. It reads
well and also aligns nicely for fixed-width fonts.
Cheers,
Ovid
--
Buy
with Perl 5 tests: identifying tests.
By promoting 'test' to a first class concept (not just adjectives), you can
name a test. Right now, I'm trying to write App::Prove::History
(http://github.com/Ovid/app--prove--history/tree/master), a bad name for code
which saves the state of test runs.
One
me :)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
tests. We should look into this more carefully!).
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
it used appropriately. All other times the user wanted .chomp.
Cheers,
Ovid
a slightly better idea of what others are
thinking.
(And a bit thanks to chromatic for regularly posting those updates. It helps a
lot)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http
,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
- Original Message
From: Ovid publiustemp-perl6langua...@yahoo.com
Eventually, the code broke and threw a bunch of weird recursive inheritance
warnings due to multiple anonymous classes being applied to the object. This
was *real fun* to debug, but I can imagine a scenario
instead of Perl 6 and didn't know about this :)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
The RSS feed for rakudo.org shows the last update as Feb 28, 2009. Wasn't
certain from the site where I should send a contact email. Thus, rss complaint
list spam!
http://rakudo.org/rss.xml
Cheers,
Ovid
PS: Thanks for all of the fantastic work, folks!
--
Buy the book - http
to call, but
I don't understand how a particular role's methods would be called here.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki
see, with Jonathan's, you only have to
provide methods for what you're disambiguating, It seems like your code would
require that I specifically list every method which is handled, which would
clearly get unwieldy with large roles or many roles. Did I miss something?
Cheers,
Ovid
--
Buy the book
- Original Message
From: Jonathan Worthington jonat...@jnthn.net
Ovid wrote:
It needs the timed fuse() from a Bomb role and a non-lethal explode() from
a
Spouse role, though each role provides both methods.
I'm curious...
1) How often do you in real life find yourself
a
complex inheritance hierarchy to a roles-based system.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
that they're always calling the correct x().
How would Perl 6 approach this issue?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http
finally realized that
Java needed to do: they provide an @Override annotation for methods which
override parent methods. The compiler should warn if an overridden method is
not annotated as such
(http://java.sun.com/javase/7/docs/api/java/lang/Override.html).
See http://use.perl.org/~Ovid/journal
binding defers the decision which causes implementation details to leak to
consumers of C. This means that if you change your roles, your consumers will
potentially need to be rewritten.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http
, they seem wrong to me, but that's probably because I'm not reading them
closely enough.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki
). However, if roles start making their way on to
the CPAN, you won't necessarily have control over the source code, forcing you
to fork or simply not use the role in question. Regrettably, that defeats the
purpose of roles -- namely, to facilitate code reuse.
Cheers,
Ovid
--
Buy the book
on the other's
method
With that, you have roles which cannot be composed. You must rewrite one (bad
if you don't own it), or omit one..
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http
a '??' but no '!!'. Again, the new
version (arriving in a week or so) should be better about such
messages.
Aargh! That one bugs me. I can see how I made that mistake, but boy, I should
have spotted it :)
Thanks for your help.
Cheers,
Ovid--
Buy the book - http://www.oreilly.com/catalog/perlhks
As a follow-up to this, I have my code posted at
http://blogs.perl.org/users/ovid/2009/12/configini-in-perl-6.html
While my admittedly clumsy grammar matches, transforming it into an AST has
failed miserably.
Aside from the advent calendar or the online docs at
http://perlcabal.org/syn/S05
, we have a filename: /Users/ovid/bin/perl6
Houston, we have a filename: /Users/ovid/bin/perl6
Constraint type check failed for parameter '$name'
in Main (file src/gen_setting.pm, line 324)
Obviously the error message can use some work, but how would I customize that
error message
should be a Num = -273.15, not '$_' }
With something akin to that, developers won't have to write extra boilerplate
every time a constraint fails. Plus, the code is friendlier :)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http
$name) {
say Houston, we have a filename: $name;
}
foo($*EXECUTABLE_NAME);
say before;
foo('no_such_file');
say after;
Output:
Houston, we have a filename: /Users/ovid/bin/perl6
before
after
Is this a bug or just documented behavior that I don't know about
, but I'm still not expecting the sub
call to be skipped silently due to a constraint failure. Silent failures are
bad :)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http
92 matches
Mail list logo