Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: extract line

by lallison (Novice)
on Jul 21, 2013 at 17:28 UTC ( #1045523=note: print w/ replies, xml ) Need Help??


in reply to Re: extract line
in thread extract line

are you running the file with cat pm_1045452_file2.txt statement?


Comment on Re^2: extract line
Re^3: extract line
by kcott (Abbot) on Jul 22, 2013 at 08:50 UTC

    If you're unfamiliar with *nix OSes, perhaps what I posted requires a little further explanation:

    • The actual code I ran is the "perl -Mstrict -Mwarnings -e ' ... '" part (see perlrun).
    • The two lines immediately following that second single quote is the output produced by the print statement.
    • cat is a commonly used *nix command (unrelated to Perl) that prints the contents of file(s). You can read "$ cat pm_1045452_file1.txt" as "Here's the contents of the file pm_1045452_file1.txt:". This is entirely unrelated to the Perl code; it merely shows the data the Perl code is using (which, as stated, I had slightly modified).

    [In case you didn't know, "*nix" is just an umbrella term for any UNIX-like OS.]

    -- Ken

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2014-11-24 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (137 votes), past polls