in reply to Re^5: problems parsing data
in thread problems parsing data

Here is the output: Again, thanks for the help with this.

$VAR1 = [ 'DeviceType: L3Switch DeviceInformation: Contact: NOC 123-456-7890 Hostname: wano121 Location: JCDC Manufacturer: Cisco Model: WS-C3750G-48TS-S (C3750 series) OSVer: 12.2(46)SE Processor: WS-C3750G-48TS (PowerPC405) ROMVer: 12.2(25r)SEE4 SerialNumber: FOC1325Z4CF,FOC1325Z688 ServiceTypes: Power SystemImage: flash:c3750-advipservicesk9-mz.122-46.SE.bin SystemMemory: 134209536 ' ];

Replies are listed 'Best First'.
Re^7: problems parsing data
by ikegami (Patriarch) on Jul 16, 2010 at 03:28 UTC
    In that case, my original answer was correct. $tftp is what $res->result() returns.

      OK, can the left side of the = still be any expression? Since I won't know what the results are until after I get them and they'll be different for each device, I don't see how I can hard code them to a var.

        No. For example, the following will fail:
        print("Hello World") = 3;
        for my $ip (...) { my $res = ...; my ($image) = ...; print("$ip: $image\n"); }