Loading ...
Sorry, an error occurred while loading the content.
 

Re: [PBML] using BackTicks in perl

Expand Messages
  • Rob Biedenharn
    ... What else have you tried? What does this give you: $x = `pwd`; print $x; What did you expect to find in $x after $x=`mkdir /mnt`; ? -Rob Rob Biedenharn
    Message 1 of 3 , Dec 12, 2006
      On Dec 12, 2006, at 11:15 AM, Raja Rajasekaram wrote:

      > Hi All,
      >
      > Anyone used backticks in Perl? Here is what I am trying to do
      > $x = `mkdir /mnt`;
      > print "$x";
      >
      > Is there anyway to catch the output? Or does backticks return
      > anything?
      >
      > Thanks

      What else have you tried?

      What does this give you:
      $x = `pwd`;
      print $x;

      What did you expect to find in $x after $x=`mkdir /mnt`; ?

      -Rob

      Rob Biedenharn http://agileconsultingllc.com
      Rob@...
    Your message has been successfully submitted and would be delivered to recipients shortly.