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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by BStopp

  1. BStopp

    Nested Variables

    You guys are great! I used the sub-routine that KevinADC provided and it does exactly what I need to do. There's only one thing i don't get about the code though. On the left side of the substitution you have: @{[$i+1]} I get that if it's not exactly like this it doesn't work, but what i...
  2. BStopp

    Nested Variables

    Before anyone suggests it, i also tried changing the "change.defs" file to read: B${1}_Y${2}_M${3} and B($1)_Y($2)_M($3) thinking that it was the _ that was causing the problem. Still recieved the same error. -B
  3. BStopp

    Nested Variables

    I tried changing the regex substitution statement to be s///eeg, and s///ee, like mikedaruke suggested, and got this error: Bareword found where operator expected at (eval 1) line 1, near "$1_Y" (Missing operator before _Y?) Bareword found where operator expected at (eval 1) line 1...
  4. BStopp

    Nested Variables

    Sorry all, there was a mistake in my code when i tried to recreate the functionality (my actual code can't be posted). Here is code the recreates my problem and i don't know how to fix: use DirHandle; my $INAME = 0; my $ONAME = 1; my %changes = (); my @line; my $key; my $old_file; my...
  5. BStopp

    Nested Variables

    Sure, I'll show you how I'm building the hash, if it'll help. Here goes: my $INAME = 0; my $ONAME = 1; my %changes = (); my @line; my $key; my $old_file; my $new_file; my $dirh = new DirHandle; my @files; open(FILE, "<change.defs"); while (<FILE>) { @line = split(/\s+/, $_); $key =...
  6. BStopp

    Nested Variables

    I understand what you posted, but unfortunately it doesn't address my problem. The actual script won't have any knowledge prior to run-time of what pattern to match, nor what the new value will be. Therefore, there is no way to know just how many $1, $2..$n variables will be used. All of this...
  7. BStopp

    Nested Variables

    I have a file which contains two columns. Column 1 is the pattern to match, column 2 contains the replacement pattern. So: B_(Stopp)_(\d{4})(\d{2})\d{2} B$1_Y$2_M$3 i want to do substitution using the interpolated varabiles in my code. I can get the pattern to match just fine, but when i...
  8. BStopp

    Problems with 64bit app

    Oh two more questions: Is there a place or website out there that has the API for all Fortran's standard library functions? did the READ() function specifications change from 32bit to 64bit. -B
  9. BStopp

    Problems with 64bit app

    First some background: Server type: unknown OS: Sun Solaris 8 OS Support: sparcv9 & sparc I converted this application from 32bit to 64bit. From what i can tell it compiles & links in 64 bit. (All the flags necessary for 64bit are being passed to compiler, ie: -xarch=v9 for CC/f77 & -64 for...
  10. BStopp

    XtPointer

    Ok, been frying my brain for a while now, so gonna ask for help. Been asked to update this application from 32-bit to 64-bit. It uses something called Widgets and XtPointers. Now, i have no idea what they are and don't really care. The problem i have is when i try to compile the file i get the...
  11. BStopp

    jsp:useBean question

    Thanks for the help sedj but one of my co-workers found the problem. I was missing this: <%@ page isELIgnored="false" %> Apparently my default value for ignoring the expression language is set to TRUE, therefore it wasn't doing the evaluation, it was printing litterals.
  12. BStopp

    jsp:useBean question

    For some clarification, there are two errors in the code of my last post.. The line that says: <HTML> if (dataBean.getloginStatus() == "false") Ignore everything but the <HTML> tag. and the line that says <c:if test="${dataBean.loginStatus == 'true'}"> Yes it...
  13. BStopp

    jsp:useBean question

    Here's some more info, may help you all to understand what I am trying to do: <%@ page contentType="text/html" %> <%@ page import="sod.*" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML>...
  14. BStopp

    jsp:useBean question

    When using <jsp:useBean> tag the first step the application server does is search the scope you specify for the appropriate bean. What exactly does it search in the scope? I mean if i specify: <jsp:useBean id="myBean" scope="request" class="myPackage.myBeanClass"> Does it search the...
  15. BStopp

    How to change Button value

    In IE if you use javascript to change the 'value' attribute of a <button> it works fine, even displays the new value on the button as it should. However this doesn't work in any other browser but IE.. Can anyone tell me how to get it to work, such as: Is there a different attribute i need to...

Part and Inventory Search

Back
Top