Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: trouble with substitution

by remiah (Hermit)
on Jan 19, 2012 at 12:43 UTC ( #948774=note: print w/ replies, xml ) Need Help??


in reply to Re: trouble with substitution
in thread trouble with substitution

I usually use 'require' to thaw dumped text.

#!/usr/bin/perl use strict; use warnings; use Data::Dumper; my $dat = require "dump.txt";

It has been very handy for me.


Comment on Re^2: trouble with substitution
Download Code
Re^3: trouble with substitution
by CountZero (Bishop) on Jan 19, 2012 at 19:25 UTC
    Yes, that will work as well, provided your file lives somewhere @INC points to.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948774]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-09-20 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (159 votes), past polls