clear just spits out a ^L character.
maybe when encapsulated in backticks it doesn't have the desired effect.


On Fri, Nov 14, 2008 at 6:25 PM, Ludwig Isaac Lim <[EMAIL PROTECTED]> wrote:
>
> Hi:
>
>    I'm not sure if the phenomenon occurs in Linux, but occurred in the HP-UX 
> machine that I'm
> using.
>
>    The following code below doesn't work:
>    `/usr/bin/clear`;
>    if ($? != 0) {
>        die "$!";
>    }
>    print "exit\n";
>
>   Note:
>   a) The screen doesn't clear but "die" is not executed (i.e. "exit" in 
> printed on screen) )
>
>    system("clear");   # This one works.
>
>   I'm just curious why `/usr/bin/clear` or `clear` doesn't work, yet 
> system("clear") works given
> the fact that using backticks for other shell command works.
>
>    I know this code is not portable, but portability is not an issue here =) 
> Just curious.
>
>    Thanks.
>
> Regards,
> Ludwig
>
>
>
>
>
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
>



-- 
Orlando Andico
+63.2.976.8659 | +63.920.903.0335
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to