in reply to (crazyinsomniac) Re: functions inside patterns
in thread functions inside patterns

the function changes dynamically. So I can not call a sub. The script is running from a wrapper program which passes it functions via STDIN. I cant define too much in the perl code without breaking dependencies in the wrapper script. I could get in trouble for disclosing too much but thank you very much for your input!
  • Comment on Re: (crazyinsomniac) Re: functions inside patterns

Replies are listed 'Best First'.
Re: Re: (crazyinsomniac) Re: functions inside patterns
by crazyinsomniac (Prior) on Dec 20, 2001 at 11:12 UTC
    "the function changes dynamically. So I can not call a sub."

    A function is a sub, whether it be predeclared ( sub foo{return 'foo'}) or "dynamic" so to speak (a closure my $function = sub {return 'fooo'}; print &$function;).

    "The script is running from a wrapper program which passes it functions via STDIN"

    That sugguests to me you should be well versed in perlsec, cause in my opinion, that no good stratogy.

     
    ___crazyinsomniac_______________________________________
    Disclaimer: Don't blame. It came from inside the void

    perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"