in reply to Global symbol requires explicit package..
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"; } # ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Global symbol requires explicit package..
by tobyink (Canon) on Jan 22, 2014 at 10:12 UTC | |
by choroba (Cardinal) on Jan 22, 2014 at 10:23 UTC |