Kerry LeBlanc 
Materials Auditor 
Process Owner 
75 Perseverence Way 
Hyannis, MA. 02601 
1-508-862-3082 
http://www.vsf.cape.com/~bismark 



#make sure $part_num is formatted correctly to keep someone form doing bad things with 
the backtick execution

I am not familiar with the term backtick so I do not really understand your warning. 
The part number will be entered to look like this: 68-2208-04
At what part of my code would I put a statement like this? Would it be before the open 
statement or replace it?
Thanks

$data = `cat file.txt |grep $part_num`;

if($data) { print "Here is your info :\n$data\n"; }
else { print info to file or whatever here }



You like newlines a lot don't you :)

The newlines are not permanent. I use them to space out the outputs in my dos window 
so that I can follow it easier. They will be removed. :)


Kerry

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to