I have a bunch of domain names coming in like this:
http://subdomain.example.com (example.com is always example.com, but the subdomain varies).
I need \"subd
#!/usr/bin/perl use strict; use warnings; my $s = 'http://subdomain.example.com'; my $subdomain = (split qr{/{2}|\.}, $s)[1]; print "'$subdomain'\n";