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 strongm 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: *

  1. gnewitall

    USB device attached to hub works on 1 port but not another port.

    The device is a USB voice recorder attached to a USB 4-port hub. The device works fine in 1 port, but when attaching to the port I wish to connect to on the hub it does not work even though the green light on the hub comes on and Windows seems to find it fine and I can safely remove it via the...
  2. gnewitall

    How to execute an if statement defined in a string?

    Got it. Thank you.
  3. gnewitall

    How to execute an if statement defined in a string?

    Given, $string = "if ((33 * 11) > 1500) { $result = 1; } else { $result = 0; }" How do I execute the if statement within the same perl script the string is defined in? Thanks in advance.
  4. gnewitall

    How to call a subroutine from a string?

    Found it. &$string;
  5. gnewitall

    How to call a subroutine from a string?

    How do I call a subroutine named in a string? Instead of: sub test($$) { my $lookfor = shift; my $string = shift; print "\n$lookfor "; if($string =~ m/($lookfor)/) { print " is in "; } else { print " is NOT in "; } print "$string."; if(defined($1)) { print "...
  6. gnewitall

    Need advanced string parser, evaluate user formula.

    I need to create a form that allows users to enter a formula then parses and evaluates it to return a 1 or 0 on the backend. I am struggling with the logic of how to evaluate the string by storing the contents of the inner most parenthesis first, pair it with the appropriate operator then...

Part and Inventory Search

Back
Top