dumpenv4python.pl 547 B

1234567891011121314151617181920
  1. # This Source Code Form is subject to the terms of the Mozilla Public
  2. # License, v. 2.0. If a copy of the MPL was not distributed with this
  3. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4. # See build/autoconf/hooks.m4
  5. use Data::Dumper;
  6. $Data::Dumper::Terse = 1;
  7. $Data::Dumper::Indent = 0;
  8. # We can't use perl hashes because Mozilla-Build's perl is 5.6, and perl
  9. # 5.6's Data::Dumper doesn't have Pair to change ' => ' into ' : '.
  10. @data = (
  11. ['env', [map { [$_, $ENV{$_}] } keys %ENV]],
  12. ['args', \@ARGV],
  13. );
  14. print Dumper \@data;