/ Published in: Perl
Just run in your consol window as ./tocase (or whatever you call the file). Be sure to give it proper permission first (chmod 755 tocase) :]
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/usr/bin/perl -w use strict; use 5.010; my ($type, $string); while (<STDIN>) { if (/^(upper|lower)$/i) { $type = $_; last; } else { } } given ($type) { }