On Friday, July 3, 2015, Tom Browder <tom.brow...@gmail.com> wrote:
> On Fri, Jul 3, 2015 at 7:35 AM, Tom Browder <tom.brow...@gmail.com> wrote:
> > On Fri, Jul 3, 2015 at 7:21 AM, yary <not....@gmail.com> wrote:
> >> On Fri, Jul 3, 2015 at 8:07 AM, Tom Browder <tom.brow...@gmail.com> wrote:
> > ...
>
> So, considering all the comments and S32 wording, I suspect that this
> would be sort of a "best practice" idiom:
>
> if defined $idx {
> ...

After looking at some new (to me) built-ins, wouldn't this be a bit
more Perl6ish:

  with $idx {
  ...
  }

As I understand it the block would only be entered if $idx were
defined. And elsif and else blocks could be added if needed.

Best regards,

-Tom

Reply via email to