NKTI::general::char::split - The Perl Extension for split character.
use NKTI::general::char::split # Example String : my $string = 'I Think Debian'; # Splite based length : my @split_len = NKTI::general::char::split->based_length($string, 1); # Splite based char : my @split_char = NKTI::general::char::split->based_char($string, " ", 0); # Output "print Dumper \@split_len" : $VAR1 = [ 'I', ' ', 'T', 'h', 'i', 'n', 'k', ' ', 'D', 'e', 'b', 'i', 'a', 'n' ]; # Output "print Dumper \@split_char" : $VAR1 = [ 'I', 'Think', 'Debian' ];
This module can split character with simple way and output of module in array data type.
To use this module you can install module NKTI::general.
Parameter Modul : ---------------------------------------- $string => String will be split. $length => lenght of character for split.
Parameter Modul : ---------------------------------------- $string => String will be split. $delimiter => character for delimiter. $join => For merged. IF == 1 --> Split is then merged and the result is joined in the string data type, IF == 0 --> Split result in array data type.
Achmad Yusri Afandi, (linuxer08@gmail.com)
Copyright (c) 2016, Achmad Yusri Afandi, All Rights reserved.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install NKTI::general, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NKTI::general
CPAN shell
perl -MCPAN -e shell install NKTI::general
For more information on module installation, please visit the detailed CPAN module installation guide.