Search:
Type: Posts; User: debiandude
Search:
Search took 0.26 seconds.
-
Its pretty much the same thing.
if( $option == 1) {
print "Stuff";
} elsif ( $option == 2) {
print "Different Stuff";
} else {
print "None stuff";
-
Wow if it wasn't for that email thing I don't think i would have every seen this. If been gone for a while from LNO, seems kinda wierd, when did they chnage the BB system?
Oh and thanks...
-
Why were you explicitaly callind std:: ?
This compiles fine and runs, no errors.
#include <iostream>
using namespace std;
int Add (int x, int y)
-
Im trying to work with ruby. It seems pretty cool so far, but I am having a little trouble.
Let say I have a string "ABCDE" and I want it to print out the ascii number values of it like 65,66...
-
Well if speed is reason enough for you then the concatenation operation is faster.
that is
$string1 .= $string2;
is faster than
$string1 = "$string1$string2";
first since it's in...
-
Okay thats fine and good that you want to stick to what you wrote becuase it works. However that is the WORST resason I have ever heard for using something.
I mean for instance I have
...
-
Perl has a special operator for this, the dot, '.' operator.
So to concat you just do:
$string1 .= $string2;
-
I should note that chaning is not of dire need because even though searching though the list for an item to update is at worst n, n has yet to be very large. However, if it ever does get very big...
-
Woah. Thanks for all the input so far. I still havn't decied on what I'm going to do, but I am leaning to change it to a binary tree.
Oh and someone asked if this was for school, its not its for...
-
A double linked list is a structure that has pointers to both the next and previous members.
so member b would have a pointer to its previous a and to its next c. Its a long chain. A binary...
-
Yeah its C and a doubly linked list. What your asking me to do is create a binary tree or something. That seems a little overkill. I just want a little bit better of a way they going through the...
-
Any one know of a good method to search through a linked list. Right now Im doing it linearly and I can't think of a way to make it faster.
-
What your doing IMO sounds like a bad idea. First it forces some one who is looking at your code to WTF, becuase well macro definitions do not change (well except in your case). Just use the...
-
Hey TLD. This one is actually pretty simple.
Enjoy!
#!/usr/bin/perl -w
#
use strict;
use File::Find;
-
Yeah, that what the code I posted does, you feed it a list.
-
If you write it like this, you feed it a list like machine1 machine2 and it will do each individually.
However if you just want it to get it for all machines you will need to do a broadcast...
-
Also try:
use Data: :Dumper;
and then do print Dumper \@array;
Its maybe can help you debug.
-
When you pass several arrays to a subroutine, Perl creates one list in @_. There is no possibility to determine which elements are from which array. If you need these informations, you can pass...
-
I know I know. I have this bad habit of assuming that everyone know whats going on in my head. Funny thing is half the time I don't even know whats going on up there ;-)
-
See but I couldn't just call waitpid becuase I wouldn't be able to execute other things in the mean time. What I did was set up a signal cather to SIGCHLD and interupt what ever Im doing.
-
Thanks, SIGCHLD was exactly it. Grazie!
-
Im writing a timer program. However I need to know if my child finishes exiting and quits. Is there a signal I could listen to that tells me the process has quit?
-
Perl has an argument array to :-)
#!/usr/bin/perl -w
use strict;
unless(open FILE, shift @ARGV) {
die "Cannot open file: !$\n";
-
-
Right now I own two domains. So I have both of those domains MX records set to my box. And I am able to get my mail, however when I connect to them to get my mail I always get the email for both...
|
|