in reply to all's fair...
<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
Or perhaps:#!/usr/bin/perl $love{'all'}='fair'; $war {'all'}='fair';
#!/usr/bin/perl $love{'all'}='fair'; &war; sub war { print "All is fair in love and war."; }
|
|---|