in reply to Re: Ternary Operator for Multiple Arguments Passing
in thread Ternary Operator for Multiple Arguments Passing

Your last example has the same bug as the OP. It should be;

my $based_on = defined( $ARGV[0] ) ? shift : 'tp'; my $top = defined( $ARGV[0] ) ? shift : 1;


___________
Eric Hodges $_='y==QAe=e?y==QG@>@?iy==QVq?f?=a@iG?=QQ=Q?9'; s/(.)/ord($1)-50/eigs;tr/6123457/- \/|\\\_\n/;print;

Replies are listed 'Best First'.
Re^3: Ternary Operator for Multiple Arguments Passing
by davido (Cardinal) on Dec 21, 2005 at 04:16 UTC

    How funny, and what irony! :) It goes to show how easy it is to make that kind of mistake if you let your guard down. You're correct, of course, and that's what I intended to say.

    Cheers!


    Dave