in reply to Re: Pick Up Files and put contents into variables
in thread Pick Up Files and put contents into variables

hi there,

Thanks for that, but how would i obtain the output from the files? i don't see any part of the script that puts it into variables?
I am useless at perl, so i probably overlooked it!
AP3K
  • Comment on Re: Re: Pick Up Files and put contents into variables

Replies are listed 'Best First'.
Re: Re: Re: Pick Up Files and put contents into variables
by fruiture (Curate) on Aug 30, 2002 at 12:42 UTC
    push @{$files{$file}} , [ split ]

    This line actually assignes the fields of the current line to "a variable". More detailed 'split' actually means 'split " ",$_' which is described in `perldoc -f split`. The resulting list is put into an anonymous array-reference, which itself is pushed into an array that is again an anonymous ref and the value of the filename-key in the hash %files.

    --
    http://fruiture.de