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. technoman007

    weird if statement problem

    hey all .. i found the problem $var had an extra newline character .. so i jst chomped it and it worked :D ..
  2. technoman007

    weird if statement problem

    if i print the values of k and n they have Aug,Aug Aug,Aug Aug,Mar Aug,Mar the first two values are same .. so not sure y the if statement dosent pass.
  3. technoman007

    weird if statement problem

    so this piece of code compares the months. The data in node.txt is of this sort. alpha1 Thu Aug 15 21:08:51 PDT 2012 - disable alpha1 Thu Aug 15 21:11:43 PDT 2012 - enable alpha1 Thu Mar 15 21:58:13 PDT 2012 - disable alpha1 Sat Mar 24 00:41:12 PDT 2012 - enable so the output basically...
  4. technoman007

    wats wrong with this code.

    Feherke .. thanks a lot .. that was my mistake .. i rem reading that in a book .. but it had slipped from my mind .. Feherke u suggested that this not a healthy perl practice .. could u please suggest how to do the same in perl .. can this be done without using command line commands.
  5. technoman007

    wats wrong with this code.

    so here im jst tryin to push all lines with todays date into the array. but all the data is going thru and getting saved in the array. $var has this thing adminode Sun Mar 11 01:53:16 EST 2012 - technoman - sleeping nodename adminnode Sun Mar 11 01:53:37 EST 2012 - superman - awake nodename...
  6. technoman007

    replacing values in a coloum thru the file.

    Thanks feherke .. appreciate ur help .. will try it in eve .. at work now :P ..
  7. technoman007

    replacing values in a coloum thru the file.

    thanks a lot feherke. so this will write to the same input file rite ?
  8. technoman007

    replacing values in a coloum thru the file.

    feherke could u please explain it a lil please ... thanks
  9. technoman007

    replacing values in a coloum thru the file.

    hi i have a file which has data like this month car dealer year jan lexus xyz 2012 mar merc ber 2011 april toyota wer 2010 with perl i want to replace month with a corresponding number like jan -1 feb -2 mar -3 .. .. dec -12 the number of lines in...

Part and Inventory Search

Back
Top