in reply to system call in Perl

If you really want to use that command line, try using:
system(q[ls -r1 *BC*.txt | grep -v Liver |awk '{split ($1,name,"."); p +rintf name[1]"\n"}' > BCfile.name]);
Note the use of q and removal of the line continuation \.

Replies are listed 'Best First'.
Re: Re: system call in Perl
by sauoq (Abbot) on Jul 10, 2003 at 04:09 UTC

    There's no need to remove the "continuation \". Of course, he didn't really need it in the first place as it occurs between single quotes (and between awk statements), but that's beside the point. He might as well keep it readable by breaking up the long line.

    -sauoq
    "My two cents aren't worth a dime.";
    
      Well, yes, but my point was that it wasn't needed. IMHO, it only improves readability slightly.