#!/usr/bin/perl @all = ($love["fair"], $war["fair"]);

Replies are listed 'Best First'.
RE: all's fair...
by myocom (Deacon) on Oct 27, 2000 at 22:17 UTC

    <PrincessBride>I do not think that means what you think it means.</PrincessBride> You can't use a string as an index to an array... Perhaps you meant

    #!/usr/bin/perl @all = ($love{'fair'}, $war{'fair'});

    Though I think that warps the semantics of the original poem. Linguistically, it parses differently (paraphrased, it's "All is that which is fair in love and that which is fair in war"). Me, I'd write

    #!/usr/bin/perl $love{'all'}='fair'; $war {'all'}='fair';
    Or perhaps:
    #!/usr/bin/perl $love{'all'}='fair'; &war; sub war { print "All is fair in love and war."; }
RE: all's fair...
by frankus (Priest) on Oct 27, 2000 at 20:42 UTC

    I voted for this one due to my morbid curiousity. ( I wanted the gory XP details :)

    Not wanting to disrupt the status quo, I downvoted the facsimile ;).

    --
    
    Brother Frankus.