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

Re: Learning Perl by Doing

by 1nickt (Canon)
on Mar 24, 2017 at 12:40 UTC ( [id://1185775]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $data = do { local $/; <DATA> };
    @array = split 'on something', $data;
    
  2. or download this
    while ( my $line = <DATA> ) {
        # handle the line here instead of as an element of an array
    }
    
  3. or download this
    use Path::Tiny 'path';
    my $file_path = '/foo/bar/baz.txt';
    ...
        chomp $line;
        ...
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (1)
As of 2024-04-24 16:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found