Catmandu::Fix::int(3pm) | User Contributed Perl Documentation | Catmandu::Fix::int(3pm) |
Catmandu::Fix::int - convert a value to an integer
# year => "2016" int(year) # year => 2016 # foo => "bar-123baz" int(foo) # foo => -123 # foo => "" int(foo) # foo => 0 # foo => "abc" int(foo) # foo => 0 # foo => [] int(foo) # foo => 0 # foo => ["a", "b", "c"] int(foo) # foo => 3 # foo => {a => "b", c => "d"} int(foo) # foo => 2
Catmandu::Fix
2023-03-03 | perl v5.36.0 |