RE: qw versus qx

2003-07-24 Thread Dan Muey
> > Is qw for holding list of data and qx is for running > commands? Do they both indicate a list context? Thanks, John perldoc -f qq perlop "Regexp Quote-Like Operators" my @stuff = qw(hi bye joe mama); my @cmdln = qx(cat monkey.txt| grep fred); my $cmdln = qx(cat monkey.txt| grep fred);

RE: qw versus qx

2003-07-24 Thread Hanson, Rob
> Is qw for holding list of data and qx is for running commands? yes. > Do they both indicate a list context? no. qw{word word} is the same as ('word', 'word')... and qx{foo bar} is the same as `foo bar`. qx{} is just there if you need an alternate syntax to ``, like if you needed to use a bac