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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by CoffeeFrapp

  1. CoffeeFrapp

    Reading files and regex, Newb at Perl

    How so? Every time it runs it clears the file, and the message always is on the same line, and if the keyword doesn't match any command it returns an error
  2. CoffeeFrapp

    Reading files and regex, Newb at Perl

    Thank you that works beautifully. If you were wondering what I'm trying to do is write a program to perform system commands via SMS texts/emails
  3. CoffeeFrapp

    Reading files and regex, Newb at Perl

    It may seem like homework because i have no idea what im doing, and i don't want to look stupid because of how retarded my code looks lol. I've tried a few things including open(INBOX,'/var/spool/mail/chuck') or die "$!"; $line = 0; while(<INBOX>) { if ($line >= 27) { my $command == $_; print...
  4. CoffeeFrapp

    Reading files and regex, Newb at Perl

    I'm trying to write a program that reads the 27th line of a file(chuck), then depending if the line contains a command(hello) then have it print a line(Goodbye). I've tried to find examples of how to do this but its never worked properly. If somebody could just show me how this would work using...

Part and Inventory Search

Back
Top