in reply to Re: if $bard...
in thread if $bard...

Or alternatively
$rose{smell} = $rose{name} eq "rose" ? "sweet" : "as sweet";
Update: string comparison... oops

If God had meant us to fly, he would *never* have give us the railroads.
    --Michael Flanders

Replies are listed 'Best First'.
Re: Re: Re: if $bard...
by arturo (Vicar) on Apr 18, 2001 at 19:47 UTC

    Educational interlude ... let's do it with typeglobs!

    #!/usr/bin/perl $rose = "smells sweet to degree n"; *other_name = *rose; print "$other_name\n";
Re: Re: Re: if $bard...
by Beatnik (Parson) on Apr 18, 2001 at 19:48 UTC
    I actually doubted on that one... I considered this as well...

    $Rose = name($Rose) ? $Rose : Smell($Sweet);

    Since it would match "that which we call a rose By any other name would smell as sweet" better...

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.