[TriLUG] rusty perl question

Warren Myers volcimaster at gmail.com
Wed May 9 12:03:13 EDT 2007


in which langauge?

in php (my preferred) it's pretty straightforward
   if("==============" == $line){
      do_something();
   }


WMM

On 5/9/07, Greg Brown <gwbrown1 at gmail.com> wrote:
>
> I'd like to match this line as a trigger:
>
> ==============
>
> that is all that is on the line.
>
> I'm so rusty even this basic pattern match is thwarting me.  I'm
> embarrased
> to ask but what is the syntax for:
>
> if $line equals that line I listed above {
>
>                do this and that;
>
> }
>
> :(
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>



-- 
http://warrenmyers.com
"God may not play dice with the universe, but something strange is going on
with the prime numbers." --Paul Erdős
"It's not possible. We are the type of people who have everything in our
favor going against us." --Ben Jarhvi, Short Circuit 2


More information about the TriLUG mailing list