in reply to I know this code could be better...
In list context, the diamond operator returns the entire file, so you can avoid the loop:while(<NODE>){ push(@lines, $_); }
push( @lines, <NODE> );
is better asif($is_script eq 'yes'){ middle(); bottom(); } else { top(); middle(); bottom(); }
top() unless ($is_script eq "yes"); middle(); bottom();
xoxo,
Andy
%_=split/;/,".;;n;u;e;ot;t;her;c; ". # Andy Lester
'Perl ;@; a;a;j;m;er;y;t;p;n;d;s;o;'. # http://petdance.com
"hack";print map delete$_{$_},split//,q< andy@petdance.com >
|
|---|