Slug has asked for the wisdom of the Perl Monks concerning the following question:
SOLVED
Can someone please tell me how to print the last two characters on the end of a string.
1234,Dr,Huxtable,Cliff,M,24/12/1976,60
Here is my pattern match
$sight = ($_ !~ m/\Z{2}/);
Thanks. Thanks Everybody
1234,Dr,Huxtable,Cliff,M,24/12/1976,60
Here is my pattern match
$sight = ($_ !~ m/\Z{2}/);
Thanks. Thanks Everybody
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Printing last two characters
by FunkyMonk (Chancellor) on Jan 03, 2008 at 11:26 UTC | |
by ikegami (Patriarch) on Jan 03, 2008 at 12:10 UTC | |
Re: Printing last two characters
by bart (Canon) on Jan 03, 2008 at 11:46 UTC | |
Re: Printing last two characters
by reasonablekeith (Deacon) on Jan 03, 2008 at 11:40 UTC | |
Re: Printing last two characters
by moritz (Cardinal) on Jan 03, 2008 at 11:41 UTC | |
Re: Printing last two characters
by olus (Curate) on Jan 03, 2008 at 11:36 UTC | |
Re: SOLVED Printing last two characters
by Slug (Acolyte) on Jan 03, 2008 at 11:49 UTC |
Back to
Seekers of Perl Wisdom