Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Sorting The Date format Values without using any perl modules.

by eric256 (Parson)
on Dec 26, 2005 at 16:14 UTC ( #519162=note: print w/replies, xml ) Need Help??


in reply to Sorting The Date format Values without using any perl modules.

This answer is intentionaly vague since your data changed twice and I have no idea which to use, and it appears this is some sort of homework because of the strange no split suggestion. If you can't use split, then look for some way to split a string without using split. One way would be to use substr instead.

my $test = "Hello World"; my $new = substr($test, 6,5) . "-" . substr($test,0,5); print $new;


___________
Eric Hodges $_='y==QAe=e?y==QG@>@?iy==QVq?f?=a@iG?=QQ=Q?9'; s/(.)/ord($1)-50/eigs;tr/6123457/- \/|\\\_\n/;print;
  • Comment on Re: Sorting The Date format Values without using any perl modules.
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://519162]
help
Chatterbox?
[panwarsagar]: I have started learning Perl and my moto is to process a text file and storing the contents in a Data Base

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2017-03-28 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (330 votes). Check out past polls.