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...
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"...
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.