in reply to Re: Whats wrong in this code?
in thread Whats wrong in this code?

Depends.

qwurx [shmem] ~> touch foo.txt qwurx [shmem] ~> perl -Mautodie=open,unlink -le '$_=pop;open "<", $_; +unlink $_' foo.txt qwurx [shmem] ~> ls foo.txt ls: cannot access foo.txt: No such file or directory

AFAIK...

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Replies are listed 'Best First'.
Re^3: Whats wrong in this code?
by Anonymous Monk on Nov 19, 2016 at 00:22 UTC

    Depends....

    Yes, there exist differences between the platforms

    And yes, the portable practice is preferable because it is portable

    And yes, error checking will let you know if there are errors