Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
we have this Perl forms script (perl 4) that needs to be modified so that it includes a unique character string (number and/or text) automatically inserted into the generated output when the form is submitted with user information.

Currently, the relevant code outputs like this:

 print $ITEMOUT "Subject:   Request_Number:  \n";

with the "Reqest_Number:" followed by blank text, but the new version of our processing software requires that the "Request_Number:" string be followed by a unique number or text string (for the form submission to be processed without errors.)

I'm thinking of getting the date/time from system and inserting it after the "Request_Number:" as a means of generating a unique string.

Any suggestions for doing this using date/time stamp or other better means of generating unique string. This is not a high volume form, so I thought the date/time is "unique enough"

thanks in advance..from someone new to PERL

In reply to gernerating unique string by Anonymous Monk

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2022-08-19 07:48 GMT
Find Nodes?
    Voting Booth?

    No recent polls found