Go Back   Velocity Reviews > Newsgroups > PERL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

PERL - how to save output of a command into a hash of arrays

 
Thread Tools Search this Thread
Old 06-12-2009, 02:51 PM   #1
Default how to save output of a command into a hash of arrays


hi all,

i am new to perl...
i am trying to put the output of below command into a hash of arrays...

`find $mypath ! -user mainuser -printf \"\%u \%h\\n\"`;

this command gives output as

john <somepath1>
john <somepath2>
john <somepath3>
james <somepath4>
james <somepath5>


now what i want is to directly make an hash of arrays which stores :

john --> <somepath1>
<sompath2>
<somepath3>

james --> <somepath4>
<somepath5>

is this possible??
thanks in advance for the help.


saapa
saapa is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CISCO 1801 DNS problem marsav Hardware 2 07-05-2009 11:41 PM
Different types of video output - I'm confused robotiser@googlemail.com DVD Video 2 07-29-2007 04:25 PM
Post-Route Simulation does not give output for the first clock cycle Options velocityreviews Software 0 04-17-2007 05:47 PM
Sony Precision Cinema Progressive Output vs Component 480p Output Otto Pylot DVD Video 1 04-18-2004 10:49 PM
Panasonic S25 DVD player w/o S-video output - will its replacement have S-video? Mark DVD Video 1 02-11-2004 04:19 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46