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

Re: Unix Shell / Perl Questions

Expand Messages
  • pjtr
    Thanks! I think I dealt with those problems :)
    Message 1 of 4 , Nov 1, 2003
      Thanks!

      I think I dealt with those problems :)
    • Will Walker
      ... This one was answered (use your shell s for construct). ... open(MYFILE, myfilename ) || die could not write myfilename: $! n ; print MYFILE whatever
      Message 2 of 4 , Nov 3, 2003
        On Fri, Oct 31, 2003 at 10:58:16PM -0000, pjtr wrote:
        > Heya.
        >
        > I have two questions.
        >
        > A) How can I execute the command 'move name1.* name2.*' in a unix
        > shell?

        This one was answered (use your shell's 'for' construct).


        > B) How can make perl to output a text file, not just a string with
        > the print "string" command.


        open(MYFILE,">myfilename") || die "could not write myfilename: $!\n";

        print MYFILE "whatever you want to print\n";

        close(MYFILE);
      Your message has been successfully submitted and would be delivered to recipients shortly.