Path separator. DUUUH.
This commit is contained in:
parent
5611583965
commit
65484457e3
16
cowsay
16
cowsay
@ -1,7 +1,7 @@
|
||||
#%BANGPERL%
|
||||
|
||||
##
|
||||
## Cowsay 3.0
|
||||
## Cowsay 3.01
|
||||
##
|
||||
## This file is part of cowsay. (c) 1999 Tony Monroe.
|
||||
##
|
||||
@ -27,6 +27,14 @@ $Text::Wrap::initial_tab = 8;
|
||||
$Text::Wrap::subsequent_tab = 8;
|
||||
$Text::Wrap::tabstop = 8;
|
||||
|
||||
## One of these days, we'll get it ported to Windows. Yeah, right.
|
||||
|
||||
if (($^O eq "MSWin32") or ($^O eq "Windows_NT")) { ## Many perls, eek!
|
||||
$pathsep = ';';
|
||||
} else {
|
||||
$pathsep = ':';
|
||||
}
|
||||
|
||||
%opts = (
|
||||
'e' => 'oo',
|
||||
'f' => 'default.cow',
|
||||
@ -52,12 +60,6 @@ $eyes = substr($opts{'e'}, 0, 2);
|
||||
$tongue = substr($opts{'T'}, 0, 2);
|
||||
$the_cow = "";
|
||||
|
||||
if (($^O eq "MSWin32") or ($^O eq "Windows_NT")) { ## Many perls, eek!
|
||||
$pathsep = ';';
|
||||
} else {
|
||||
$pathsep = ':';
|
||||
}
|
||||
|
||||
&slurp_input;
|
||||
$Text::Wrap::columns = $opts{'W'};
|
||||
@message = ($opts{'n'} ? expand(@message) :
|
||||
|
Loading…
Reference in New Issue
Block a user