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 bkrike 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 karyn1617

  1. karyn1617

    JUnit Task

    I am having problems using the junit task. Ant is not recognizing the junit as a task. I get this error message: Could not create task or type of type: junit. Ant could not find the task or a class this task relies upon. I have read the FAQ corresponding to this problem on the...
  2. karyn1617

    Need a string function???!!

    I am trying to find every occurrence of a pattern within a string, and remove it. For example: $string = "abcdabcdabcd"; and I want to remove every a so that $string = "bcdbcdbcd" is there a function that does that? Or a simple way. I know I can use index() and loop through and do substr()...
  3. karyn1617

    Can't read from file???

    THANKS GUYS!!!! I ended up using $inputString = do { local $/; <FILE> };
  4. karyn1617

    Can't read from file???

    Ok I figured out I was only reading the first line, but how do I read the whole file into a string? Or is it only possible to read the whole fine into an array of lines??
  5. karyn1617

    Can't read from file???

    Here is a code snippet open(SOURCE, $input) || die "Cannot Open $input: $!\n"; while( <SOURCE> ) { chomp($File = $_); open(FILE, $File) || die "Cannot Open $File: $!\n"; $inputString = <FILE>; print "$inputString\n"; But for some reason the inputString is empty, even though I...
  6. karyn1617

    SScanf for Perl?

    Is there an equivalent to sscanf in Perl? I want to read in white space delimited strings into variables..I tried String::scanf but I don't have that library?

Part and Inventory Search

Back
Top