Dear Pete,

Pete Bastawros, Technical Director, MOYES & CO., INC. wrote:

> In dire straits. Not much experience with Perl. I would like to
> read record IDs either in text (below) or a variable from ASP
> into a Perl script. Can anyone help me?
> 
> ASP query result looks as so:
> 
> 122736<BR>122733<BR>122740<BR>122742<BR>122743<BR>122770
> 
> (with html tags before)

cut off your HTML tags somehow until the string shown above is
left in some variable, (i.e. $id_strings), then simply do:

    @ids = split(/\<BR\>/, $id_strings);

and you have a list (array) of all your ids in @ids stripped from
the <BR> and ready to be processed.


Besides, you are on the wrong list, the 'jboss' mailing list is
not meant to help out 'bosses' (or managers or directors) with
their problems, whatever they are. But then you might find many
'boss' level developers and project managers around here, so you
are welcome to check back and read one or the other.

And it might be better for you and your company to switch from
ASP to JSP and EJB, especially JBoss bundled with TomCat or
Jetty, have a look at http://www.jboss.org/ and direct your
'staff' to it, maybe, they already told you about and you didn't
know it?

have a nice day
Georg

 ___   ___
| + | |__    Georg Rehfeld      Woltmanstr. 12     20097 Hamburg
|_|_\ |___   [EMAIL PROTECTED]           +49 (40) 23 53 27 10

PS: If you continue to use Perl (not a bad decision) you really
    should consider reading 'Programming Perl' completely, it's
    ally fun! 
Authors: Larry Wall, Tom Christianson and Randal L. Schwartz
O'Reilly & Associates, Inc.
ISBN: 1-56592-149-6



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to