Advertisement

02.12.2006 at 07:58AM PST, ID: 21733571
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

using perl script to transpose text file

Tags: transpose, perl, text, file
i am a total perl newbie but i have inherited a script to transpose a text file. For various reasons i have to use perl. The only thing is, i dont know how to feed it the script to be transposed. Can someone walk me through it. I have perl installed on my windows xp and am trying to use the DOS prompt. The script is:

#!/usr/bin/perl
# The Missing Textutils, Ondrej Bojar, obo@cuni.cz
# http://www.cuni.cz/~obo/textutils
#
# 'transpose' swaps rows and columns in the given tab-delimited table.
#
# $Id: transpose,v 1.2 2005/10/10 07:33:50 bojar Exp $
#
open (MYFILE, "c:\meminfo.txt")
$line=<MYFILE>;

while (<MYFILE>) {
  chomp;
  @line = split /\t/;
  $oldlastcol = $lastcol;
  $lastcol = $#line if $#line > $lastcol;
  for (my $i=$oldlastcol; $i < $lastcol; $i++) {
    $outline[$i] = "\t" x $oldlastcol;
  }
  for (my $i=0; $i <=$lastcol; $i++) {
    $outline[$i] .= "$line[$i]\t"
  }
}
for (my $i=0; $i <= $lastcol; $i++) {
  $outline[$i] =~ s/\s*$//g;
  print $outline[$i]."\n";
}
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: sebastiz
Solution Provided By: mjcoyne
Participating Experts: 2
Solution Grade: B
Views: 76
Translate:
Loading Advertisement...
02.12.2006 at 08:09AM PST, ID: 15935085

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.12.2006 at 09:34AM PST, ID: 15935430

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.13.2006 at 05:11AM PST, ID: 15941020

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.13.2006 at 06:58AM PST, ID: 15941730

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.14.2006 at 06:52AM PST, ID: 15951290

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.15.2006 at 03:41AM PST, ID: 15959306

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29