Hi Sewi,
Thanks for the reply.
I was planning to first use an array and then pass the elements of the array to a hash...Came out with very very basic stuff like this:
#!/usr/bin/perl use warnings; use strict; my $command = `symdev -sid 1234 list -noport -noreserve|find /I "not v +isible"`; my @cmdline = split (/\n/, $command); my @chgcmdline = @cmdline[5,8]; print "@chgcmdline\n";
But got stuck after this. Tried going through the node I have mentioned earlier and figuring out. The symdev -sid 1234 list -noport -noreserve|find /I "not visible" is the command that gives the output mentioned in my post.
BTW - I am using Strawberry Perl that came bundled with Padre IDE and I do sometimes use Padre. Awesome IDE. Mr. Gabor did a great thing by pre bundling a lot of modules. Neat stuff :)
Perlpetually Indebted To PerlMonks
In reply to Re^2: Counting devices types, device sizes and number of devices.
by perl514
in thread Counting devices types, device sizes and number of devices.
by perl514
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |