Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: How to replace the last 2 characters in a string

by Samy_rio (Vicar)
on Apr 25, 2006 at 04:28 UTC ( #545467=note: print w/replies, xml ) Need Help??


in reply to How to replace the last 2 characters in a string

Try this,

use strict; use warnings; my $timestmpa_value = "200504250955"; $timestmpa_value =~ s/.{2}$/67/; print $timestmpa_value;

You should view How (Not) To Ask A Question

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://545467]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2018-05-20 14:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?