-----BEGIN PGP SIGNED MESSAGE-----

Thanks for pointing out that I was "not setting $over anywhere", the code snippet 
below clears that up.

#!/usr/bin/perl -w
use strict;
#this program's specification is on page 167
#in the Llama book under exercise 1
my ($source, $go, $dest, $expression, $over);
$over = 1 if($ARGV[0] eq "-o");
until($go){
    print "Please enter a source filename: ";
    chomp ($source = <STDIN>);
    $go = $over ? 1 : &filep($source, 0);
}
$go = 0;
until($go){
    print "\nPlease enter a destination filename: ";
    chomp ($dest = <STDIN>);
    $go = $over ? 1 : &filep($dest, 1);
}

Since you asked: 
>Hi. I'm confused.
>
>I don't have a copy of the Llama, and don't understand what the -o option >is
>supposed to do. I also don't know what a 'conditional hook test' is.
...
>Oh, and do you have a name, apart from 'anonymous8653120'?

First, the commented out line about the Llama was actually in there for myself (to 
remind me where I got the idea from). Second, the '-o' option is  just a safety 
over-ride flag I put in to show get avound some of my program's more irritating 
features, like not being able to make a new file.
Lastly, I thought that the "<something> ? <true_expression> : <false_expression>" 
conditional operator was called a 'conditional hook', I could be wrong, though.

Thanks for your help,
Ryan Kaulakis (aka. [EMAIL PROTECTED])
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQEVAwUBPiNWr/Unuf0MKqq5AQE65Qf/Z/2TYUjE7vy0kj5YcBrP2Sl+PRPl+DD6
f0BYR7SxO2aBGdcZUxLCks4W5h/6PcNNwYqJOQ8YEiCpjjWrnrQAllmRSoBhiT95
oPD7ji1A2bYt/gdCTzl+IuzbKzeCOhgonevIRN0Rogka307RjQFGT2xyy+AF8cFS
/aI8x794vDvO004MBMfUIpheRsVQ/UmBvVsym26boJVUWG374sR9+/i/524yWo4C
hLuIY7BiAhjrK7DhQbM6tGtC4s1HD9okTjN2uccl+oinw0hqM8QOQI3MluvfkiGC
6t6GWsDeM3Af3BXpGjnOZRXDHp8J06LO1hnN+Uxm+Ui0GSu2hRXcsw==
=6wdz
-----END PGP SIGNATURE-----

__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to