I have been using queues in perl with the array data structure using push and shift commands. This works great but now i need to implemnt a prioity queue structure. Which means i cant be using an array anymore, i need to have a linked list. I am not sure how to make a link list in perl. Does...
ya i had a feeling that the ansi color was not supported in dos. The system call changes the entire screen. But it doesnt change just the part of the text that i want. I think we are fighting a lost cause here. hehe. But thanks for the help.
the ppm.pl seems to work. But when i try to install the package, it says that it couldnt locate a ppd file for the package. I downloaded the package right from cpan.
Have u ever gotten color to work in perl? win32 system.<br><br>example:<br><br>----------------------<br>use Term::ANSIColor;<br>print color("red"),"red color should be here", color("reset");<br><br>---------------------<br><br>here is the output: <br>[31mred color...
Are u in the right directory when running the program?<br>I tried spawning a child process and it worked for me.<br>like:<br><br><br>chdir('c:\program files\perl builder');<br>system('pbuilder.exe');<br>
Im on a win nt system using active perl. I am having trouble installing cpan modules because i dont have this "mkefile.pl". Does any1 have this or know where i can get this?
something else i just noticed about the struct is that i cannot store strings. The only thing it allows me to store are numbers. There must be someone out there who used struct before. Please help.
thx for the input.. but i already know how to use a normal 2d-array. The biggest problem is putting this 2d array in an object. I need to use objects for my program becuase i will need to put these objects in a queue. The example in my perl cookbook does not compile. It always tells me i have...
i am trying to get a 2d array in a structure. Here is what i am doing which is not working.<br><br>use Class::Struct;<br>struct Puzzel =><br>{<br> board => '@'<br>};<br><br>my $hi = Puzzel->new();<br><br>$hi->board ( ['1', '2' ],<br> ['4', '5'...
first save the line to a variable like $line. Then<br><br><br>$line =~ s/data1¦data1¦data1¦data1//;<br><br>This will substitute that line with nothing, thus making ur line disappear.<br>
i am having trouble with structures in perl. My code gives me errors. Can any1 give me an idea of how to fix the error.<br><br>use Class::Struct;<br><br>struct Puzzel =><br>{<br> board => '@',<br>};<br><br>my $hi = Puzzel->new();<br><br>$hi->board ( ['1', '2' ],<br>...
I am having trouble running 2 perl programs at the same time. I think perl does not allocate separate memory spaces for each instance of perl. My program gets all messed up when i try to run 2 perl programs at the same time. Does any1 have a way aroudn this problem?
I have perlbuilder and running win nt. I just tried out the code and it works. Here is what my code is:<br><br>$months='january¦february¦march¦april¦may¦june¦july¦august¦september¦october¦november¦december'; <br><br>$token = 'march';<br><br>if ($token =~/$months/) {print "yes";}<br>
perlbuilder is really good for debugging..i really like the interface. perl2exe works great on normal scripts that ive written, cept it just wont work with the LWP module. Im still tryint to figure out why.
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.