P5-parse-distname

Jul 20, 2023

Parse a distribution name

ParseDistname is yet another distribution name parser. It works almost the same as CPANDistnameInfo, but ParseDistname takes a different approach. It tries to extract a version part of a distribution and treat the rest as a distribution name, contrary to CPANDistnameInfo which tries to define a name part and treat the rest as a version.

Because of this difference, when ParseDistname parses a weird distribution name such as “AUTHOR/v1.0.tar.gz”, it says the name is empty and the version is “v1.0”, while CPANDistnameInfo says the name is “v” and the version is “1.0”. See test files in this distribution if you need more details. As of this writing, ParseDistname returns a different result for about 200+ distributions among about 320000 BackPan distributions.



Checkout these related ports:
  • Zziplib - Library to provide transparent read access to zipped files
  • Zydis - Fast and lightweight x86/x86-64 disassembler library
  • Zycore-c - Support library with platform independent types, macros, etc for Zydis
  • Zthread - Platform-independent object-oriented C++ threading library
  • Zookeeper - Coordination Service for Distributed Applications
  • Zls - Zig LSP implementation + Zig Language Server
  • Zfp - High throughput library for compressed floating-point arrays
  • Zeal - Offline documentation browser
  • Zapcc - C++ caching compiler based on clang
  • Zanata-platform - Web-based translation platform
  • Zanata-cli - Zanata Java command line client
  • Z88dk - Complete Z80/Z180 development kit
  • Z80ex - ZiLOG Z80 CPU emulator library
  • Z80asm - Assembler for the Z80 microprocessor
  • Z80-asm - Z80 assembly code assembler and disassembler