Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. DotSlashJames

    Way to select a shell to run commands

    This might be what you need: http://search.cpan.org/~pjcj/Shell-Source-0.01/Source.pm <from cpan>
  2. DotSlashJames

    get contents of a whole file

    err... i mean: for $t ( @{$tables} ) { ... }
  3. DotSlashJames

    get contents of a whole file

    $tables is an array reference... so try changing: for $t ( @$tables ) to for $t ( @{$tables} );
  4. DotSlashJames

    get contents of a whole file

    # 1. What is your file name? my $file = 'my-file.txt'; # 2. Open the file for reading ( '<' ) open( FD, "<$file" ) or die "$0: error: $!\n"; # Slurp it up my @lines = <FD>; # Close the file close FD;
  5. DotSlashJames

    Reading Files recursively without using Modules.

    I find that File::Find is decent for simple stuff. For recursive travesals with more specific operations in mind opendir, readdir, and chdir are simple and effective... if you have a good algorithm of course :) ./james
  6. DotSlashJames

    looking for a regex to see if string contains '342' in it anywhere...

    print $string =~ /342/ ? 'yes' : 'no';
  7. DotSlashJames

    How would I get row and column of current cursor position in termial

    Hey, I used Term::Screen to write a little status bar module. But it will only work correctly for my needs if I can pass it the row and column of the current cursor position on the terminal. I played around with Curses getyx() function, but it just did not seem to do what I want. Basically I...

Part and Inventory Search

Back
Top