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...
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()...
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??
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...
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.