On Thu, 2006-27-04 at 15:37 -0400, Mr. Shawn H. Corey wrote:
> On Thu, 2006-27-04 at 21:28 +0200, Dr.Ruud wrote:
> > Why gamble that "0" is a valid index, or even the minimal index, if
> > there is "$["?
> > 
> > Of course "the others" should use a local "$[" if they change it from
> > the default 0 to some other value, but you just can't be sure that it
> > will never bite you. Unless you use "$[" with "$#ary", because "$#ary"
> > depends on "$[" like this: ($#ary -$[ +1) == scalar(@ary).
> 
> function resign ()
> {
>   grep -q '$\[' "$*"
>   if [ $? -eq 1 ]
>   then
>     update_resume
>     send_resume
>   fi
> }

Oops, sorry, this is a Perl list:

#!/usr/bin/perl

use strict;
use warnings;

use MyResume;

while( <> ){
  if( /$\[/ ){
    update_resume();
    send_resume( 'all' );
    exit 1;
  }
}


-- 
__END__

Just my 0.00000002 million dollars worth,
   --- Shawn

"For the things we have to learn before we can do them, we learn by doing them."
  Aristotle

* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to