regex - gunzip or decompress the file in perl and capture the file name in variable -
i have 9001_20150921113547_00041.xml.gz
, want gunzip or can decompress 9001_20150921113547_00041.xml
... have many ways in perl, have use system(), qw, qx , backtick well, decompress file , stored file in path want store new decompress file name variable how can ?
you can use archive::zip cpan execute job bits under control. not need fork out unzip command, , control output file name yourself. documentation on page has code examples.
Comments
Post a Comment