Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: odd behavior with DATA section

by davidrw (Prior)
on Jul 23, 2005 at 00:16 UTC ( [id://477394]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (my $line = <DATA>) {
        chomp $line;
    ...
        unless $line =~ /\S/;
        ...
    }
    
  2. or download this
    my $dir = "$base_dir/$filepath"
    do { mkpath $dir; print "Made $dir\n"; } unless -d $dir;
    
  3. or download this
    warn "Line: ==$line==";
    my ($filename, $filepath) = split '\t', $line;
    warn "filename: '$filename' --- filepath: '$filepath'";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-19 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found