---
name: "Cupt::Core"
section: "3pm"
platform: "linux"
package: "libcupt-perl"
version: "1.5.14.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Cupt::Core"
---

# Cupt::Core(3pm)

core subroutines for Cupt

## NAME

Cupt::Core - core subroutines for Cupt

## REGEXES

### package\_name\_regex

regular expression to check package name string

### version\_string\_regex

regular expression to check version string

## SUBROUTINES

### compare\_version\_strings

free subroutine, compares two version strings

Parameters:

*first\_version\_string*

*second\_version\_string*

Returns:

- •

  \-1, if the *first\_version\_string* is less than *second\_version\_string*

- •

  0, if the *first\_version\_string* is equal to *second\_version\_string*

- •

  1, if the *first\_version-string* if greater than *second\_version\_string*

### is\_version\_string\_native

returns boolean answer, true if the version is version for Debian native package, and false otherwise

### are\_hash\_sums\_present

returns boolean answer, true if at least one valid hash sum (md5, sha1, sha256) present

### compare\_hash\_sums

returns boolean answer, whether hash sums in the specified hashes match

Parameters:

*left* - hash

*right* - hash

### glob\_to\_regex

modifies the string parameter in-place
