Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: rearranging a string.new

by ikegami (Patriarch)
on Nov 21, 2005 at 14:19 UTC ( [id://510528]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to rearranging a string.new

Your arguments were completely wrong. Maybe you should reread the documentation for substr. Corrected:
my $newstring = substr($string, 4, 2) # Month (was at 4 len 2) . substr($string, 6, 2) # Day (was at 6 len 2) . substr($string, 0, 4); # Year (was at 0 len 4)
which can be simplified to
my $newstring = substr($string, 4, 4) # M+D (was at 4 len 4) . substr($string, 0, 4); # Year (was at 0 len 4)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://510528]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.