There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The code is from the file hpoj (no extension), which is installed as part of the hpoj-0.90-14 RPM for RedHat Linux 9. It's 1339 lines long, but here are lines one through six: unchanged...
Really?! No one is familiar with exec and eval? eval "evaluates" perl code or an expression and exec terminates the currently running Perl script and executes it's arguments in the current shell, ie: without creating a new process ID. There is no eval command in Bash, but the exec command does work in a similar fashion, executing it's arguments without creating a new process. I think both execs are actually based on a similar function in the standard programming library for Unix-like operating systems. -- -- GhodMode In reply to Re: Re: understanding eval in HPOJ
by GhodMode
|
|