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

Re: [PBML] outputting a command result

Expand Messages
  • rmillergraysharbor
    That s it! Thanks to all of you for your help. Regina
    Message 1 of 6 , Oct 27, 2011
    • 0 Attachment
      That's it!
      Thanks to all of you for your help.
      Regina

      --- In perl-beginner@yahoogroups.com, merlyn@... wrote:
      >
      > >>>>> "ReginaM" == ReginaM <rmiller@...> writes:
      >
      > ReginaM> Thank you.
      > ReginaM> That got me farther along, but I still have an issue.
      >
      > ReginaM> I've now got:
      > ReginaM> $filename = `ls -at1 /head -1`;
      >
      > If that's supposed to be:
      >
      > ls -at1 | head -1
      >
      > It'd be simpler to just:
      >
      > my ($filename) = `ls -at1`;
      >
      > which will grab just the first line of output.
      >
      > --
      > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
      > <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
      > Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
      > See http://methodsandmessages.posterous.com/ for Smalltalk discussion
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.