On 6/3/07, Mike Lesser <[EMAIL PROTECTED]> wrote: snip
Then I attempted to use Tidy, sans HTML::Tidy, through Shell. The HTML::Tidy lib won't work on my system. So, I have been futzing with tidy and I'v e discovered that tidy and simple commands like cd fail, most likely because of the spaces in my paths.For example, here's the path I pass to the script (no quotes): /Users/mike/Airline\ Sheets/Original\ Schedules/UnitedJune.html Here's the path as found via File::Basename/fileparse: /Users/mike/Projects/Omni/Airline Sheets/Original Schedules/
snip What you want is my $tidy = "/usr/bin/tidy"; my @tidy_args = qw(--foo --bar -- example); my $path = get_path(); my $file = $path . get_file(); system($tidy, @tidy_args, $file); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
