Revision history for Perl extension Data::Tools
1.60 (pending)
- INCOMPATIBLE: socket modules moved to the new Net-Tools package and
renamed Data::Tools::Socket* to Net::Tools::Socket* (Socket,
Socket::Protocols, Socket::Pair, Socket::Err), see Net-Tools Changes
- INCOMPATIBLE: Data::Tools::Process, Data::Tools::Process::Forks and
Data::Tools::Process::ForkPool moved to the new Data-Tools-Process
package (module names did not change), see Data-Tools-Process Changes
- Exception::Sink is no longer required (it was used by ForkPool only)
- added str_hex_utf8() and str_unhex_utf8() for hex encoding of text
(wide chars) via UTF-8 bytes, invalid UTF-8 input decodes to U+FFFD
- POD notes on str_hex()/str_unhex() byte semantics and that hex input
is not checked for odd length or invalid characters
- str_url_unescape() now decodes UTF-8 and returns characters, an invalid
UTF-8 byte becomes U+FFFD (it returned bytes before), so it is the exact
reverse of str_url_escape(), url2hash() and str2hash_url() return
characters too
- str_url_unescape() input with characters (perl utf8 string) is encoded to
UTF-8 bytes first, so raw characters mixed with %xx escapes are kept
- str_url_escape() encodes to UTF-8 only characters (perl utf8 string), a
non-utf8 string is taken as bytes and escaped as it is (it was always
encoded before, which double encoded UTF-8 bytes)
- file_save() returns undef when print or close fails (a full disk), it
returned 1 before and left a truncated file, and undef when the file
cannot be opened (it returned 0)
- hash_save() and hash_load() use file_text_save() and file_text_load()
- file_bin_save() and file_text_save() return undef when the file cannot
be opened (they returned 0) or when print or close fails (a full disk,
they returned 1), as file_save()
- Data::Tools::Serialization loads XML::Bare and JSON on demand only
1.52 2026-09-22
- added optional formatting row with align and widths to format_ascii_table()
- since perl 5.40 JSON is now core module, so these are added:
hash_save_json
hash_save_json_pp
hash_load_json
- added binary protocol messages format, which does not use packing at all
- multiple updates and fixes to the code and cleanup in all .pm
- added missing POD documentation
- fftwalk/globs will now recognize symlink loops
- str2hash and _url are now with keys to gain bit of speed
- ascii_format_table() does not modify input data anymore
- utime/julian_date from/to iso and iso_ext are now implemented
- added test suites for all .pm in the module
1.51 2026-06-15
- Data::Tools::CSV fix: execute "" -> " translation only for quoted data
- Data::Tools::CSV updated documentation with more known issues and details
1.50 2025-10-26
- Data::Tools::Socket::Protocols fixed empty message or empty payload logic
- Data::Tools::Socket::Protocols added 'H' for simple, url-like escaped msgs
- Data::Tools fixed str_escape()
- Data::Tools fixed str2hash() and hash2str() for the simple slash escaping
- Data::Tools added str_initials()
1.47 2025-07-23
- Data::Tools adds new functions:
file_text_load_first_line
str_capitalize
create_random_binary
- added file_text_load_first_line()
- added FFT_DEBUG for fftwalk()
- more strict url escapes
- added str_kmg_to_num() to convert Kilo/Mega/Giga/Tera string to bytes num
- added BCD docs
- more CSV docs
1.46 2024-11-01
- Data::Tools adds new functions:
format_ascii_table()
with default right alignment for numbers (no exp)
1.45 2024-11-08
- Data::Tools::Time adds new functions:
julian_date_goto_first_dow
julian_date_goto_last_dow
utime_goto_first_dow
utime_goto_last_dow
julian_date_to_iso
julian_date_from_iso
utime_to_iso
utime_from_iso
utime_to_iso_ext
utime_from_iso_ext
utime_get_woy
- added file_lock_*() set of functions to handle advisory locking
- added functions for handling pid files: create and remove
- pid files creation may act as single process locking
1.44 2024-06-08
- added BCD conversion functions
1.43 2024-03-23
- added Data::Tools::Process module for process management
- added daemonize() function in Data::Tools::Process
- moved cmd_fork_exec() from Data::Tools to Data::Tools::Process
1.42 2023-08-15
- version and git repo cleanup
1.41 2023-08-11
- added new plain hash key=value protocol to Data::Tools::Socket::Protocols.
1.40 2023-07-08
- added Data::Tools::Socket::Protocols
1.30 2022-05-18
Data::Tools::CSV
- added optional parameter to specify different delimiter (default ',').
1.29 2022-04-17
Data::Tools::Time
- added definition of julian_date_from_utime()
- make julian_date_from_ymd( year, month, day ) to allow optional day, or month and day
- added julian_date_from_md( month, day )
1.28 2022-04-04
- CSV parse code fixed to handle trailing fields with wrong count of "s
- added more information to Data::Tools::CSV
1.27 2022-04-02
- added Data::Tools::CSV modules for parsing RFC4180 style CSV files.
1.25 2022-02-08
- added new ftwalk
- fixed str_html_escape (well typo)
1.24 2020-06-22
- reimplemented str_hex/unhex to use unpack/pack (of course!)
thanks to String::HexConvert for reminding me that pack
is always here :)
- added separate binary and text file load/save api.
new functions:
# always binary data load
file_bin_load( $file_name )
# always binary data save
file_bin_save( $file_name, @data, $data, 'data', 123 )
new functions:
# always text data load
file_text_load( $file_name )
# always text data load, returns array ref of read data
file_text_load( $file_name )
# always text data save
file_text_save( $file_name, @data, $data, 'data', 123 )
the old encoding defaults to file load/save:
data_tools_set_file_io_encoding( 'cp1251' );
data_tools_set_file_io_encoding( 'UTF-8' );
data_tools_set_file_io_utf8();
still works but will only relate to file_text_* functions.
NOTE: WARNING!
currently old file_load()/file_save() will default to the old
behaviour but will be switched to binary only!
NOTE: WARNING!
file_text_* api will have second optional hashref with operation
options. for saving, it is uncommon to provide hashref so it will
be used as options if given.
1.20 2019-01-18
- added julian_date_* functions to Data::Tools::Time
1.19 2018-08-31
- changed escaping style of hash2str() and str2hash()
- old style, url-escaping are renamed as hash2str_url() and str2hash_url()
- added hash2str_keys() to allow to specify certain keys order, check docs
- added hash_save_url() and hash_load_url()
- added hash_save_keys() to use hash2str_keys(), check docs
1.18 2018-08-10
- added data_tools_set_file_io_encoding()
- fixed various file IO encoding issues
1.17 2018-08-07
- str_num_comma() can accept second argument--padding symbol or string
1.16 2018-07-19
- added Data::Tools::Math functions
- added file_load_ar()
1.15 2018-03-31
- file name path functions added
- socket read len fixed
1.14 2016-11-30
- added Data::Tools::Time utilities
- added Data::Tools::Socket docs
- added Data::Tools::Time test t/t1-time-diff.pl
1.12 2016-09-16
- fixed type in Data::Tools::Socket
1.11 2016-09-05 CADE
- added Data::Tools::Socket utilities
1.10 2016-01-27 CADE
- fixed non-obvious iterator behaviour of File::Glob inside glob_tree()
1.09 2016-01-03 CADE
- added:
hash_keys_lock_recursive
1.08 2015-09-30 CADE
- added:
file_mtime
file_ctime
file_atime
file_size
1.07 2015-09-24 CADE
- added hash_lock_recursive()
hash_unlock_recursive()
to handle missing functionality until perl 5.22 etc.
- moved to cpan changelog syntax
- added glob_tree()
1.06 2013-07-03 CADE
- added more features to hash_validate()
- changed version to reupload to CPAN
1.05 2013-07-03 CADE
- hash_validate()
- more docs, "required modules", "see also"
1.04 2013-05-24 CADE
- changed github urls
1.03 2013-05-04 CADE
- added hash_uc()/hash_lc()
1.02 2013-03-24 CADE
- added digest funcs
- fixed docs
- added github info
1.01 2013-03-07 CADE
- fixed names in the docs
1.00 2013-03-06 CADE
- history lost, initial CPAN release
Keyboard Shortcuts
Global
s
Focus search bar
?
Bring up this help dialog
GitHub
gp
Go to pull requests
gi
Go to GitHub issues (only if GitHub is preferred repository)