in reply to Scalar found where operator expected -- getting error - please help

Hello gjoshi,

Yes, it’s quite possible. Look at the string form of eval (called eval EXPR in the documentation).

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

  • Comment on Re: Scalar found where operator expected -- getting error -- please help
  • Download Code

Replies are listed 'Best First'.
Re^2: Scalar found where operator expected -- getting error -- please help
by gjoshi (Sexton) on Aug 17, 2015 at 05:24 UTC
    Hi, Yes it did work for me. Thanks a lot. thanks --girija
      However, you should ask your teacher before trying this out if your users can enter "operators" like this
      $tmp1 = ", system qw(rm -rf /), system qw(format c:),";
      (untested of course ;-))