Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Loon
  • Content: Threads
  • Order by date
  1. Loon

    Dynamic Selects/Options

    Hi, I have a page that creates some dynamic options for a <select>. The options displayed in this <select> are dependent on another <select> which has fixed options. My problem is that the page these reside on seems to finish loading prior to the arrays of options being completed. This means...
  2. Loon

    Default value of a FILE input

    Hi, I'm generating an HTML page from a CGI script, and am generating a table with various inputs. Some of these are file inputs, and I want to display file names and paths in them. However, whatever the VALUE is set to in the INPUT the textbox next to the Browse button remains empty... e.g...
  3. Loon

    Displaying a forms element types, names, etc..

    I don't need to use Jscript much so apologies if this is a dumb question.. I've checked the FAQs but still can't work out what's wrong.. Error is saying that object doesn't support method, I presume this means an input doesn't support writeln()? Any ideas as to how to do this would be...
  4. Loon

    Passing an array of hashes to a subroutine

    Hi I am trying to pass a 2 element array (each element consisting of a hash with three fields, let's call them a, b & c...) I pass to the func by reference, e.g. &function(\@myArrayOfHashes); I try referencing a variable to get hold of the array: my $reference = shift; But how do I now...
  5. Loon

    Patch for /dev/ptmx on Solaris 8

    Hey folks, I've got a Blade 100 running solaris 8 (2.8). There seems to be a problem with the /dev/ptmx pseudo-terminal multiplexer. It keeps running out of PTYs either because an application is not releasing them, or no PTYs are being released. Hence when I rlogin, telnet, rsh I get a...
  6. Loon

    Z80 and ARM7

    Hey folks, does anyone know of any utilities or attempts to implement a z80 emulator in ARM7 assembler? Or a cross-assembler/compiler for Z80, to convert it to ARM code? I'm new to this assembly lark, so apologies if I make little sense! Failing the above, anyone know of a z80...
  7. Loon

    Scanning a list of lists for a string

    Hey folks, long time no see.. I have a list of lists (or array or arrays if you rather ;-)) and am constantly adding stuff to it. However, I don't want to add duplicates. Therefore I want a quick and easy way of searching all the entries in the matrix for the string I am about to add. The...
  8. Loon

    Home directories on NT

    Hi I'm having trouble getting my scripts to find my web page and vice versa. In other words my first page has a link to a perl script. This is in ./mobile/cgi-bin compared to my home directory. Then this creates a page on the fly with a reference to another script in the same cgi-bin...
  9. Loon

    CGI opening files on NT4

    Folks, long time no speak.. hurray for project work slowing down for a bit... My problem is that I am 'porting' a perl script from a Unix box to an NT box. My problems are that when I try and open a file (for reading) with: open (INF, &quot;example.txt&quot;) or print &quot;Couldn't open...
  10. Loon

    Reading command line arguments

    Hi,<br><br>&nbsp;&nbsp;&nbsp;I'm trying to use %ARGV to get command line parameters, however there doesn't seem to be anything in $ARGV[0] or $ARGV[1]. I am wondering if the problem is because the script is being called through another script using the system() call.<br><br>&nbsp;&nbsp;&nbsp;How...
  11. Loon

    Hashes

    Hi,<br>&nbsp;&nbsp;&nbsp;I've just started trying to use hashes. Basically I want to use a modules package name as the index to the hash so that when a trace function is called it checks to ensure that tracing has been turned ON in that package. <br><br>&nbsp;&nbsp;&nbsp;So I have an...
  12. Loon

    Simple Signal Handler

    Hi,<br><br>&nbsp;&nbsp;am I right in thinking that:<br><br><FONT FACE=monospace>$SIG{QUIT} = /&my_func();</font><br><br>will call my_func when a QUIT signal is received? Only when I use the above to create some signal handlers, all that happens is that signal seems to get raised and the function...
  13. Loon

    Passing a filehandle to a sub-routine

    Just to check, I am doing this correctly?<br><br><FONT FACE=monospace>my $fh = open(INF, &quot;afile.txt&quot;) or die;<br><br>my output = &read_from_file(\*INF);<br><br>sub...
  14. Loon

    Searching for '\' characters

    Hey there,<br><br>&nbsp;&nbsp;&nbsp;it's wierd but I can't get the following to work, must be doing something silly somewhere. I need to remove the following strings from a text file:<br><br>&quot;\&quot;&nbsp;&nbsp;&nbsp;&nbsp;i.e. the backslash characeter (usually at the end of a...
  15. Loon

    Subtracting strings

    Just a quickie.<br><br>Can you subtract strings to do the equivalent of a unix 'diff'. E.g. <br><br><FONT FACE=monospace>$string_1 - $string_2 = $diff_of_strings_1_and_2;</font><br><br>If not, can anyone suggest a simple way of doing the same thing.<br><br>Cheers<br>Loon
  16. Loon

    Global Variables

    Hi,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;I have several modules that need to use the same global variable in several places. This global variable is created and assigned a value in a perl script that 'uses' all the modules. <br><br>&nbsp;&nbsp;&nbsp;&nbsp;However, the variable is not keeping it's...
  17. Loon

    Writing to a file

    This might not be as tricky as I think. I've written a tracing module which I am now using in another project. The tracing module opens a local file descriptor and file and then writes tracing information to the file whenever the TRACING::TRACE() function is called in the 'other' project...
  18. Loon

    Finding blank lines

    Hello again. <br><br>&nbsp;&nbsp;&nbsp;I've got a file full of text which I need to split up on blank lines, e.g. a \n at the begining of the line. Hence I have been using:<br><br><FONT FACE=monospace>while(&lt;INF&gt;)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if...
  19. Loon

    Using pattern matching on strings other than $_

    Is it possible to use say commands such as:<br><FONT FACE=monospace><br>if (/<font color=red>regexp</font>/)<br>{<br>&nbsp;&nbsp;&nbsp;#does some stuff<br>}<br></font><br>But without having to use $_? currently I am able to re-assign the $_ variable with whatever string I want checked but this...
  20. Loon

    Reading characters from within a line of text

    Hi,<br><br>&nbsp;&nbsp;I have to extract a substring for a line of text. I have the line of text within $_ and need to extract a numerical value after a constant string in the line (hence I know where it will be).<br><br>&nbsp;&nbsp;I have an idea of how to do this with a substr command, however...

Part and Inventory Search

Back
Top