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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -