in reply to Re: Context of "if" statements?
in thread Context of "if" statements?
does not work (that is, it splits every line), and(my $server, my $dir, my $type) = split if !/^#/
does work (it only prints lines not starting with #).print if !/^#/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Context of "if" statements?
by tadman (Prior) on Nov 24, 2002 at 04:25 UTC |