X-Git-Url: http://git.tpope.net/?a=blobdiff_plain;ds=sidebyside;f=perl%2Fsct6;h=cb3fe0b19bc274d7e64b34176b4fb65020494570;hb=9d75f01621e435863f90de252a2b2c17c60f564d;hp=abfede15d0187e7552f5c51600b257b721113678;hpb=4d870833473a3248416d9efa380ebeed7e7fabf8;p=tpope-extra.git diff --git a/perl/sct6 b/perl/sct6 index abfede1..cb3fe0b 100755 --- a/perl/sct6 +++ b/perl/sct6 @@ -6,12 +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 LWP::UserAgent; -use HTML::TableExtract; 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 XML::Simple; use vars qw($ua %opts %faculty); my ($response); @@ -93,14 +97,6 @@ die $response->status_line unless $response->is_success; my @terms = grep {s/^