Practical Extraction & Reporting Language or Pathologically Eclectic Rubbish Lister
Perl, that is.
So I'm spending the weekend taking a two day course in Perl. The course is taught by John Durno of my Alma mater, U.Vic, and Mark Jordan of SFU. I took a course from Mark at SLAIS called Developing Digital Collections, which was excellent.
My programing skills are old, insignificant and highly imperfect, so I'm finding the course challenging, but stimulating. Here's one of my first programs:
The thing is that I've got a direct application for this stuff. What I'm going to do is write a script to parse an SQL report (tab delimited text) and reformat that report into an html document. Basically all I have to do is output existent data with HTML tags. Simple for someone who knows what they're doing, but hard for me... Nevertheless, it's a tenable project, and I should learn a thing or two along the way.
If you're interested in this course, here's the course website.
So I'm spending the weekend taking a two day course in Perl. The course is taught by John Durno of my Alma mater, U.Vic, and Mark Jordan of SFU. I took a course from Mark at SLAIS called Developing Digital Collections, which was excellent.
My programing skills are old, insignificant and highly imperfect, so I'm finding the course challenging, but stimulating. Here's one of my first programs:
Cool, eh?#Define an array of 5 words
@fruit = ("apple", "orange", "banana", "grape", "kiwi");
foreach $item (@fruit) {
$string = &my_subroutine ($item);
print "$string\n";
}
#For each word, upper case the first letter
sub my_subroutine {
my ($string) = @_;
my $uc_string = ucfirst($string);
return $uc_string;
}
The thing is that I've got a direct application for this stuff. What I'm going to do is write a script to parse an SQL report (tab delimited text) and reformat that report into an html document. Basically all I have to do is output existent data with HTML tags. Simple for someone who knows what they're doing, but hard for me... Nevertheless, it's a tenable project, and I should learn a thing or two along the way.
If you're interested in this course, here's the course website.
Labels: Perl
0 Comments:
Post a Comment
<< Home