Store and read hash and array in files in Perl

前端 未结 4 764
眼角桃花
眼角桃花 2020-11-29 10:01

I\'m a noob.I need some basic knowledge about how data should be saved and read under perl. Say to save a hash and an array. What format (extension) of file should be used?

4条回答
  •  情歌与酒
    2020-11-29 10:19

    If you new I just suggest make to string from array/hash with join() and they write it with "print" and then read and use split() to make array/hash again. That would be more simple way like Perl teaching text book example.

提交回复
热议问题