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 SkipVought 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. toddmanqa

    Perl Split question - multiple search terms in one variable/pattern?

    I'm trying to split text out that is contained between a set of brackets []. I tried to place both variables inside the $split variable, but it would only recognize one of the brackets. I came up with this option, which works: $line1 = 'before[within]after'; $split= ('\['); $split2 = ('\]')...
  2. toddmanqa

    Best way to save filter and save data contained in a text file

    Thanks. I will play with split and begin constructing some rules for the filtering.
  3. toddmanqa

    Best way to save filter and save data contained in a text file

    I have scanned in a book of definitions with their explanations. I'd like to use perl to read each line in the file, filter the line, and save the various elements to a database. For example, there are 52 lines in one file, and here is one: 1AB \'a-'be\ n (1927) : the one of the four ABO...
  4. toddmanqa

    Newbie If..Else Question - why return true?

    Here is my code: #!/usr/bin/perl $x = 2; if ($x = 11) { print "$x equals 11!"; } else { print "$x does not equal 11!"; } Why does it return, '11 equals 11'?

Part and Inventory Search

Back
Top