Can someone help me understand reversing a singly linked list without recursion?
struct node* result = NULL;
struct node* current = *headRef;
struct node* next;
while (current != NULL) {
next = current->next; // tricky: note the next node
current->next = result; // move the node onto the...
I am trying to grab the url without the protocol or the www. For example if you have http:www.google.com I just want google.com. I am currently using $line =~ /[^\n\r]+.(?=[\s\.,])/ Can anybody give me some suggestions? Thanks
I was wondering if anybody knew after putting an html document into an array, how does one go by editing the html line by line without having to write it to a text file. I tried using foreach $line(@array) but it didn't work. Thanks.
Danny
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.