in reply to Re: a new example
in thread a new example
#!/usr/bin/perl use strict; use warnings; my $string = "This is what you have"; print $string; #this part does not print: substr($string, 5, 2) = "wasn't"; #change "is" to "wasn't" substr($string, -12) = "ondrous"; #"this wasn't wondrous" substr($string, 0, 1) = ""; #delete first character substr($string, -10) = ""; #delete last 10 characters #printing problem end here
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 5.pl i have another new example
by ww (Archbishop) on Jul 30, 2013 at 00:41 UTC | |
|
Re: 5.pl i have another new example
by kcott (Archbishop) on Jul 30, 2013 at 05:34 UTC | |
by Raymond (Novice) on Jul 30, 2013 at 19:08 UTC |