|
Maybe I just don't know much about PERL, but I can't get this to work.
use Date::Simple ( 'date', 'today' );
$mydate = "2006-5-10";
$simpdate = date( $mydate );
But if you write date( '2006-5-10' ); it works perfectly. But I'm passing a date from a file that I don't previously know. I had to resort to doing this.
$mydate = "2006-5-10";
$simpdate = date( split( /-/,$mydate ) );
Now does anybody know if maybe I'm just supposed to use some language semantic to pass the string like putting a upside down dollar sign or a happy face in front of the variable. Something that I would never be able to guess in a million years, but PERL seems to think that's the way it supposed to work. There is more than one way to do it right, but just as many ways to do it wrong.
|
|
|
with encoding in file evrything is OK?
|
|
|
I don't really understand the question.
|
|
|
|
|
|
|
|