in reply to Re: Always Follow Up on Warnings
in thread Always Follow Up on Warnings
Happy Coding!#!/usr/bin/perl -wT use strict; my ($x,$y,$z) = (undef,'hello',undef); $_ ||='' for $x,$y,$z; print "x='$x' y='$y' z='$z'\n"; ## OR EVEN (most idiomatic imho) $_||='' for my($a,$b,$c)=(undef,9,undef); print "a='$a' b='$b' c='$c'\n";
______crazyinsomniac_____________________________ Of all the things I've lost, I miss my mind the most. perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;" |
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (crazyinsomniac) Re^2: Always Follow Up on Warnings
by redsquirrel (Hermit) on Feb 08, 2002 at 05:33 UTC | |
by $code or die (Deacon) on Feb 08, 2002 at 11:20 UTC |