Rubyish::String - String (class)
constructor
$string = Rubyish::String->new; #=> bless( do{\(my $o = '')}, 'Rubyish::String' ) $string = Rubyish::String->new("hello"); #=> bless( do{\(my $o = 'hello')}, 'Rubyish::String' ) $string = String("hello"); # do the same
replace content
$string = Rubyish::String->new("hello"); #=> bless( do{\(my $o = 'hello')}, 'Rubyish::String' ) $string->replace("world") #=> bless( do{\(my $o = 'world')}, 'Rubyish::String' )
Not Documented
$string = String("hello") $string->gsub(qr/ello/, "i") #=> hi
To install Rubyish, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rubyish
CPAN shell
perl -MCPAN -e shell install Rubyish
For more information on module installation, please visit the detailed CPAN module installation guide.