Forum: IT Professionals' Lounge Oct 31st, 2006 |
| Replies: 0 Views: 4,435 trying to remove extra white spaces in data file I'm trying to remove extra white spaces between two fields with little luck. I can remove trailing and beginning spaces but not inbetween. Can someone help out. Here is what I have - I would like... |
Forum: Perl Jan 25th, 2006 |
| Replies: 2 Views: 6,519 |
Forum: Perl Jan 24th, 2006 |
| Replies: 2 Views: 6,519 Parsing a file for multiple info in PERL Hi,
I would like to gather two types of information and put into an array. For instance, I have a file with 4 lines of info for each entry - I want to get the name and occupation only for each... |
Forum: Perl Dec 8th, 2005 |
| Replies: 1 Views: 1,585 Trouble Expanding a bus in PERL Hi all,
I am trying to list out a bus as individual names.
For instance - When I come across a section in a file that lists a bus like this:
<busname>[0:2]
I would like to print out this: |
Forum: Perl Dec 7th, 2005 |
| Replies: 1 Views: 7,936 |
Forum: Perl Nov 18th, 2005 |
| Replies: 8 Views: 11,103 |
Forum: Perl Nov 16th, 2005 |
| Replies: 8 Views: 11,103 Search and remove in Perl I am trying to remove entries if they contain the word "connected" in Perl. My file looks something like below. So In this example, I would like to search for "connected" and if found remove all 6... |
Forum: Perl Oct 3rd, 2005 |
| Replies: 5 Views: 2,527 |
Forum: Perl Oct 3rd, 2005 |
| Replies: 5 Views: 2,527 problem with incrementing numbers in a file Hello,
I am now having problems combining a "foreach" or "while" command with a search command. Basically, I need to 1st search a file line by line for a string, then if that string is found to... |
Forum: Perl Sep 28th, 2005 |
| Replies: 5 Views: 2,527 |
Forum: Perl Sep 27th, 2005 |
| Replies: 5 Views: 2,527 problem with incrementing numbers in a file Hello,
I’m trying to increment numbers in a file – for instance, I would like to change the below 3 lines in a file by incrementing the numbers by 2 (or whatever the user... |