You actually don't really need the $sys variable, you could compare dirfectly $^O, but it does not matter.my $sys = $^O; my $lim; if ($sys eq "linux") { $lim="clear"; } else { $lim="cls"; } # ...
In reply to Re: Global symbol requires explicit package..
by Laurent_R
in thread Global symbol requires explicit package..
by meanroc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |