diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2004-03-02 17:16:48 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2004-03-02 17:16:48 +0000 |
commit | e65fdea1d3ce11e0fc1043d64fd4ea140001d2ae (patch) | |
tree | d150079ca32eac663cd14fb4395a25e0eefbbcca /modules/Parser.pm | |
parent | 1815def143904790ab837d4a03d9ddabb1ccf27b (diff) | |
download | MPC-e65fdea1d3ce11e0fc1043d64fd4ea140001d2ae.tar.gz |
ChangeLogTag: Tue Mar 2 11:16:03 2004 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules/Parser.pm')
-rw-r--r-- | modules/Parser.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/Parser.pm b/modules/Parser.pm index 20ee1142..99c3e16b 100644 --- a/modules/Parser.pm +++ b/modules/Parser.pm @@ -76,7 +76,7 @@ sub cd { } } else { - if ($dir =~ /^\// || $dir =~ /^[A-Za-z]:/) { + if ($dir =~ /^(\/|[a-z]:)/i) { $cwd = $dir; } else { @@ -108,10 +108,10 @@ sub strip_line { sub preprocess_line { - my($self) = shift; - my($fh) = shift; - my($line) = shift; - return $self->strip_line($line); + #my($self) = shift; + #my($fh) = shift; + #my($line) = shift; + return $_[0]->strip_line($_[2]); } @@ -120,7 +120,7 @@ sub read_file { my($input) = shift; my($ih) = new FileHandle(); my($status) = 1; - my($errorString) = ''; + my($errorString) = undef; $self->{'line_number'} = 0; if (open($ih, $input)) { |