Help for this page

Select Code to Download


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