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 Chris Miller 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: *

  • Users: pearl2
  • Order by date
  1. pearl2

    working with databases

    Pls ignore my earlier solution - it's actually quite silly because it does nothing but duplicates the array @info_array. To do what you want to do, here is a revised solution: @array = qw(a b c d); # $array_len gives you the length of @array $array_len = @array; for (0..$#array) { $a =...
  2. pearl2

    working with databases

    @info_array = (POS,G,AB,R,H,2B); @a; for (0..$#info_array) { $a[$_] = $info_array[$_]; } In this way, you don't have to know beforehand how many elements are in @info_array, if i understood you correctly. pearl2
  3. pearl2

    Java - The platform of choice.

    thanks for that article you posted! it's both interesting to read and informative.
  4. pearl2

    deleting lines from a file.

    try this: open (FH, &quot;news.txt&quot;) or die $!; @lines = <FH>; close (FH); # To delete the first element in the array @lines pop @lines; Something like that. pearl2
  5. pearl2

    Please help with a simple match

    hi robert, you can try one of these: $line = &quot;Member ID: 12345&quot;; $line =~ s/.*:\s(\d+)/\1/g; print &quot;$line\n&quot;; OR $line = &quot;Member ID: 12345&quot;; ($mem, $id) = split/: /, $line; print &quot;$id\n&quot;; just a suggestion, cos i'm a still a perl novice. pearl2

Part and Inventory Search

Back
Top