- or download this
my ($from, $dept, $to, $arr) = unpack('x23a4x2a4x3a4x1a4', $_);
- or download this
x23: skip 23 characters
a4: get 4 characters
x2: skip 2
a4: get 4
...
- or download this
s/\s+//g for ($from, $dept, $to, $arr);
- or download this
#!/usr/bin/perl
use warnings;
...
s/\s+//g for ($from, $dept, $to, $arr);
print "$from$dept:$to$arr\n";
}