Re: regex substitution question



John W. Krahn wrote:
Mathew Snyder wrote:
A script I've been working on will provide time spent on a work ticket in H:MM
format. However, if the MM section is less than 10 it only shows as H:M so I
need to append a 0 to it. So, for instance, if the output looks like this 9:7 I
need to append the 0 to the 7 making it 9:07.

The output is created by joining to array elements like so:
my $endtime = $endtime[0] . ":" . $endtime[1];

my $endtime = sprintf '%d:%02d', @endtime[ 0, 1 ];


John

Thank you, very much. That does precisely what I need it to.

Mathew
.



Relevant Pages

  • Re: Grid on a form
    ... After I append the ss field from the master to the daughter.field, ... > Hi John, ... One of the pages keeps track of students general ...
    (microsoft.public.fox.vfp.forms)
  • Re: How do I update a table from another MDB ( of same design)
    ... I agree John, but I was concerned that the writer wanted to empty his New ... compacting a table that has ANY records in it will not ... Set up an Append Query (having done this once, ... sales -anything - compact the new sales database, ...
    (microsoft.public.access.gettingstarted)
  • Re: Re-designing and re-working database
    ... "John W. Vinson" wrote in message ... append queries to append the data in your original tables to the tables in ... Visio MVP ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Appendding to/from Upsize_ts (time stamp) field
    ... "John W. Vinson" wrote: ... I created a new Append Query, but the append fails, I think because of the ...
    (microsoft.public.access.queries)
  • RE: Importing Data from a Text file
    ... create an append query that append to the permanent table from your linked ... It will add the data from the temp table to the perm table. ... "John" wrote: ... > Is there a way of moving data from a linked table to a permanent table. ...
    (microsoft.public.access.externaldata)