Here's some variations. The code is a little shorter.
Note, if you leave out outputfile="c:\perl\bin\temp.txt" then you do not need to use
<CFCONTENT TYPE="text/html"
FILE="c:\perl\bin\temp.txt" DELETEFILE="No">
This would be a better solution because you wouldn't have to worry about using <CFLOCK> when reading and writing to a text file. If you had 2 or more people viewing it at the exact same time, the .txt file could become a problem.
Using cmd.exe (Windows Command):
[COLOR=666666]<!--------custom tag------------------>[/color]
<cfparam name="attributes.numero" default="">
<cftry>
<cfexecute name="C:\WINNT\system32\cmd.exe"
arguments="/c perl c:\perl\bin\lee_numero.pl #attributes.numero#"
timeout="1"/>
<cfcatch type="Any">
Error.
</cfcatch>
</cftry>
[COLOR=666666]<!--------custom tag------------------>[/color]
OR Using perl.exe
[COLOR=666666]<!--------custom tag------------------>[/color]
<cfparam name="attributes.numero" default="">
<cftry>
<cfexecute name="c:\Perl\bin\perl.exe"
arguments="c:\perl\bin\lee_numero.pl #attributes.numero#"
timeout="1"/>
<cfcatch type="Any">
Error.
</cfcatch>
</cftry>
[COLOR=666666]<!--------custom tag------------------>[/color] - tleish