CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [rpaskudniak] Shell command with embedded pipe: Illegal seek on open(): Edit Log



FishMonger
Veteran / Moderator

Oct 13, 2015, 9:36 AM


Views: 4661
Re: [rpaskudniak] Shell command with embedded pipe: Illegal seek on open()


Quote
That is, I know that the cdr command spits out 3 heading lines and I wan to skip them.

To do that, read the filehandle in scalar context 3 times (in void context);

Code
<$cdr> for 1..3;



(This post was edited by FishMonger on Oct 13, 2015, 9:39 AM)


Edit Log:
Post edited by FishMonger (Veteran) on Oct 13, 2015, 9:39 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives