[JaxPM] && usage?

Bill Jones sneex at mac.com
Sat Jan 5 17:22:27 CST 2002


On the jacksonville-pm-list; Jax.PM'er Bill Jones <sneex at mac.com> wrote -

OK, having thought some more about it, I feel that "&&" or "and" 
are pretty close to if() in length -- so what we are really talking 
about is "clarity" (like Steve said  :)

So ... How about -

# open files for I/O -
open (OHTML, ">".&sx_make_fn().".html") || die "FATAL: 
$filename.html\n $!";

!$enable_css and print "CSS will not be emitted...\n"; # Otherwise
$enable_css and open (OCSS, ">$filename.css") || die "FATAL: 
$filename.css\n $!";
# Emit CSS here ...
$enable_css and close (OCSS) || die "FATAL: $filename.css\n $!";

=pod
filename and sx_make_fn are declared elsewhere; sx_make_fn just 
makes me up a unique fn which looks like Sat05Jan2002182043 -- no, 
this script will not be executed more than once a minute...
=cut

Looks clear to me... Maybe I am just crazy...
-Sx-


Jax.PM Moderator's Note:
This message was posted to the Jacksonville Perl Monger's Group listserv.
The group manager can be reached at -- owner-jacksonville-pm-list at pm.org
to whom send all praises, complaints, or comments...




More information about the Jacksonville-pm mailing list