Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$newfile = "0001"; $char = substr($newfile,0, 4); $char =~ s/0//; print"$char\n"; $test = $$char + "1"; print"$test\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: adding 1 to a char of 1
by Moron (Curate) on Jun 20, 2006 at 17:12 UTC | |
by Anonymous Monk on Jun 20, 2006 at 17:38 UTC | |
by liverpole (Monsignor) on Jun 20, 2006 at 18:14 UTC | |
by Anonymous Monk on Jun 20, 2006 at 18:31 UTC | |
by ikegami (Patriarch) on Jun 20, 2006 at 20:47 UTC | |
|
Re: adding 1 to a char of 1
by ikegami (Patriarch) on Jun 20, 2006 at 16:59 UTC | |
|
Re: adding 1 to a char of 1
by MonkE (Hermit) on Jun 20, 2006 at 17:01 UTC | |
by Anonymous Monk on Jun 20, 2006 at 17:24 UTC | |
|
Re: adding 1 to a char of 1
by Zaxo (Archbishop) on Jun 20, 2006 at 19:26 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |