X-Git-Url: http://git.tpope.net/?p=tpope-extra.git;a=blobdiff_plain;f=perl%2Fsct6;h=cb3fe0b19bc274d7e64b34176b4fb65020494570;hp=ffb1cbbc7031f977070430a865652f5ac98c8603;hb=8c167e189c9d136496622da617ce1c42d3580a50;hpb=74f87239189571d121d875bd6189be7dfd532ebc diff --git a/perl/sct6 b/perl/sct6 index ffb1cbb..cb3fe0b 100755 --- a/perl/sct6 +++ b/perl/sct6 @@ -6,14 +6,16 @@ # Create a ~/.sct6rc that has SID=yourssn and PIN=yourpin # You'll need to change the url below if you go anywhere but TAMUK. +# Update: This tool now only outputs in XML. For other formats, convert +# with schedproc + use strict; use Date::Calc::Object qw(Day_of_Week Decode_Day_of_Week Decode_Month Week_of_Year Monday_of_Week Day_of_Week_Abbreviation Delta_Days Add_Delta_Days Nth_Weekday_of_Month_Year Gmtime Mktime); use Date::Calendar::Profiles qw($Profiles); use Date::Calendar::Year; use HTML::TableExtract; use LWP::UserAgent; -use IO::File; -use XML::Writer; +use XML::Simple; use vars qw($ua %opts %faculty); my ($response); @@ -95,14 +97,6 @@ die $response->status_line unless $response->is_success; my @terms = grep {s/^