X-Git-Url: http://git.tpope.net/?p=tpope-extra.git;a=blobdiff_plain;f=perl%2Fsct6;h=cb3fe0b19bc274d7e64b34176b4fb65020494570;hp=e55560f933d34383a9b0b716d8220cf4e729a91b;hb=8c167e189c9d136496622da617ce1c42d3580a50;hpb=d1ec907270171b67fa0fb3cf55f2b3b88c4cd412 diff --git a/perl/sct6 b/perl/sct6 index e55560f..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/^