ah, sorry that was a typo on my part. (I wasn't actually at the machine when I posted)
In the actual code it does say "stuff".$myNewName
Sorry for the confusion.
So unfortunately the issue still remains. Thanks very much for the reply though!
Hey guys, I seem to not fully understand what is returned by using $cgi->param('myName');
I'm trying to do add on a bit to the myName argument.
It looks like this:
use CGI;
my $cgi = new CGI;
$myNewName = $cgi->param('newName');
$myNewName = "stuff".$newName;
then it would be called...
Ahh ha!
This fixed it:
#save old file handle and set STDOUT as default
my $oldFileHandle = select STDOUT;
#I think this forces a flush of the selected output
$| = 1;
#restore old file handle
select $oldFileHandle;
Thanks!
It seems as though this may have something to do with the fact that I have open files and I am printing to them at other points in the code...
I could be totally wrong, but figured I should mention it..
thanks!
Hey guys, quick question..
I'm trying to make a little progress indicator like [23/1000] or something like that.
What I figured I could do is go through the loop and at the end of the loop:
print "\r [$myPart/$myTotal]";
However it only seems to print the very last one.
So I tried:
print...
Hey guys.. one more quick question and I promise I will leave you alone for a bit :)
Essentially all I want to do is match the string "5.1.1".
However I have noticed that PERL treats the '.' as a special character and '\.' doesn't seem to change it. The following code gets a match for "5.1.1"...
Thanks for the advise guys I got it working! :)
icrf - actually its for the exact opposite. It is running through the rejected email que to put those email addresses into the "Do not send" list. Worry, not I will save my evil tokens for another day :)
Thanks again!
Hey guys. I've got a couple of questions,
I found this someplace while looking for ways to find email addresses in a file:
/(\S+\@\S+\.\S+)/
If I understand this correctly it finds any non-whitespace word (\S) then expects an "@" then matches any non-whitespace word, then a "." then any...
Hey guys... here is the situation:
@list1 = ("one", "two", "three");
@list2 = ("myList2");
@fooList = ([@list2], [@list1]);
Basically what I want to do is walk down each array in
@fooList. For instance I want to read data from @list2,
element at a time, then @list1, but I want to be able to
add...
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.