Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: splitting the scalar variables in an array

by jwkrahn (Monsignor)
on Nov 16, 2013 at 10:36 UTC ( #1062874=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    $hosts_per_hostclass = `/opt/systems/bin/expand-hostclass --hosts -r $
    +class` ;
    push (@TotalHosts,$hosts_per_hostclass);
  2. or download this
    chomp( @hosts_per_hostclass = `/opt/systems/bin/expand-hostclass --hos
    +ts -r $class` );
    push @TotalHosts, @hosts_per_hostclass;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1062874]
[Lady_Aleena]: shmem, that is understandable! The two examples in File::Find don't make sense to me on a quick glance.
[marioroy]: LA if the find worked from Unix command line, or does it not. Likely a quoting issue inside Perl qx.
[Lady_Aleena]: marioroy, the find worked fine at the command line.
[marioroy]: LA, yeah. than there's no reason why it cannot work inside qx. But chatting is hard in PM. I cannot see the code now.
[shmem]: Lady_Aleena: sometimes a quick glance isn't enough.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2017-04-23 20:58 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (432 votes). Check out past polls.