Search Results

Search: Posts Made By: D2K
2,222
Posted By D2K
Latex/Bibtex - Error of no match for citations?
I'm trying to add citations to this latex formatted paper. I know the bibtex file is causing the issue. I will try to use this document as a reference once I have a working version. If anyone has an...
15,756
Posted By D2K
I've changed quite a bit of the code to something...
I've changed quite a bit of the code to something I understand. Also, I apologize about the forum homework policy. The question posted previously was just asking about some crazy C syntax that I did...
15,756
Posted By D2K
Lex: analyzing a C file and printing out identifiers and line numbers they're found on
Florida State University, Tallahassee, FL USA, Dr. Whalley, COP4342

1. The problem statement, all variables and given/known data:
Create a lex specification file that reads a C source program...
4,855
Posted By D2K
Thanks for the reply! I don't clearly understand...
Thanks for the reply! I don't clearly understand the code you've provided me. In fact I'm a bit confused :confused:. Is there any other way to append the line numbers other than what I think I'm...
4,855
Posted By D2K
Lex: concatenating word into array of c-strings
Alright, so I'm writing a file for the lexical analyzer (lex). It will be used to check C code (collecting the identifiers and storing those names along with the line numbers the identifier was found...
1,636
Posted By D2K
Oh yeah totally forgot about the defined()...
Oh yeah totally forgot about the defined() function. Thanks Corona!
1,636
Posted By D2K
Perl: Printing null hash values as a " "?
I'm filling in a table of values for grades. I decided to go with reading into a hash from the files but I'm coming up with an error when printing a value that does not exist. I need to know if I can...
1,215
Posted By D2K
Thanks for the reply. I fixed the issue earlier....
Thanks for the reply. I fixed the issue earlier. The post must have been concatenated to my earlier post with the code I used.;)
1,215
Posted By D2K
Sorry about that. The only little tweak I have...
Sorry about that. The only little tweak I have now is that the hash is picking up the blank lines from input. I don't want the blank line. That's the reason I posted the " : 2 times, lines 1, 5," in...
1,215
Posted By D2K
Thanks for the reply. I tried the expression's...
Thanks for the reply. I tried the expression's you've provided and it still has problems. I believe it's just the blank line in general when doing output. Your response is good enough for a thanks. :)
1,215
Posted By D2K
Perl: Regular expression tweaking?
Hello!
I'm trying to tweak my regular expression to take care of this tedious little "blank space" problem. I don't know what's causing the " : 2 times, lines 1, 5," to be printed.

Here is...
2,296
Posted By D2K
Thanks for the reply. I made some progress with...
Thanks for the reply. I made some progress with creating another hash and using the value from the %occurCount hash as the key to the new %lineConcat hash. However, my output is still interesting....
2,296
Posted By D2K
[solved]Perl: Printing line numbers to matched strings and hashes.
Florida State University, Tallahassee, FL, USA, Dr. Whalley, COP4342 Unix Tools.

This program takes much of my previous assignment but adds the functionality of printing the concatenated line...
2,804
Posted By D2K
Thanks!
Thanks!
2,804
Posted By D2K
Works perfectly! Thanks rdrtx1.
Works perfectly!
Thanks rdrtx1.
2,804
Posted By D2K
Perl: Pattern to remove words with less than 2 characters.
Hello. I've been thinking about how to go about this. I know I'm close but still does not work. I need to remove any word in that is not at least 2 characters long. I've removed all the...
1,240
Posted By D2K
I ended up using the substr() function. Thanks...
I ended up using the substr() function. Thanks for the help. I will check that out later.
1,240
Posted By D2K
Thanks for the comment. When I tried this below...
Thanks for the comment.
When I tried this below (or I may not have done it right):
if ($ARGV[0] eq "m/^-(\d+)$/")
{
print "I think it works\n";
}
It gives a compile error of unrecognized...
1,240
Posted By D2K
Interpreting arguments in Perl program.
Hello.
I'm new to Perl and I am not sure how to interpret command line arguments in the program. I am writing a program similar to the Unix utility 'tail' and need to check if first argument is '-1'...
4,831
Posted By D2K
Thanks everybody for the help! I checked out 'ed'...
Thanks everybody for the help! I checked out 'ed' and learned some new tools to use. I ended up attacking the problem from a different point of view (more creative but it works the way I need it to)....
4,831
Posted By D2K
Modifying sed to only change last occurrence.
I'm using sed to switch integers (one or more digits) to the other side of the ':' colon. For example: "47593:23421" would then be "23421:47593". The way it functions right now, it is messing my...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 03:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy