John W. Krahn wrote:
> Scot Needy wrote:
>>
>> Hi;
>
> Hello,
>
>> Trying to crate a nested hash from variables parsed out of log
>> files but
>> as I am a "Beginner Perl' coder it is failing terribly. The basic
>> question
>> is given you have 5 variables how would you make a nested hash.
>>
>> I hope this is enough code to example my problem.
>> -------------- snip ----------------------
>> foreach (@wwwlogs) {
>> %time=();
>> ($wwwname,$cust,$YYMMDDay) = split('\.',$_);
>
> The first argument to split is a regular expression.
>
> my ( $wwwname, $cust, $YYMMDDay ) = split /\./;
But, as it has an implied 'm', any delimiter will do.
The original is fine :)
Cheers,
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]