in reply to use of substr() with file
#!/usr/bin/perl use strict; use warnings; my $line = '<head><to>toe</to></head>'; print substr($line, 10, 3), "\n"; [download]