Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: XML::Simple design decisions

by Jenda (Abbot)
on Dec 29, 2007 at 00:53 UTC ( #659429=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use XML::Rules;
     # at least 0.22 (for the stripspaces)
    ...
         <Text>Device Handle: 5</Text>
       </Other>
    </Report>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://659429]
help
Chatterbox?
[Corion]: gnosti: I would cheat and use my approach instead of dealing with durations as objects, or a module
[Corion]: You could even do the calculation directly - my $duration = $H * 3600+ $M*60 + $S; strftime '%H:%M:%S', timelocal($duratio n)
[Corion]: (and that strftime call is largely superfluous too, converting back to H:M:S isn't hard either)
[gnosti]: Corion: Thanks. Going to seconds, then back to H:M:S using strftime looks good.
[gnosti]: True, it's easy to go both ways ;-)

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-08-18 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (297 votes). Check out past polls.

    Notices?