Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Noob Question

by Laurent_R (Abbot)
on Oct 28, 2012 at 22:51 UTC ( #1001294=note: print w/ replies, xml ) Need Help??


in reply to Noob Question

You obviously did not really understand the Perl syntax to open and read a file.

Try something like this:

#! /usr/bin/perl use strict; use warnings; open (my $fh, "<", "test.txt") or die "Could not open test file $! \n" +; while (<$fh>) { # blah blah }

Replies are listed 'Best First'.
Magical ARGV Readline
by chromatic (Archbishop) on Oct 28, 2012 at 23:11 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2016-06-26 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (330 votes). Check out past polls.