Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: shifting data to the beginning of an array

by davido (Cardinal)
on Jun 16, 2004 at 18:54 UTC ( #367373=note: print w/replies, xml ) Need Help??

in reply to shifting data to the beginning of an array

One issue is that you're interpolating an array into a string and trying to use the results as a filename to open.

If you intend to open multiple files, one after another, you should wrap your open.... while.... stuff in a foreach block that iterates over the filenames held in @ejectapes.

Also, why are you setting @ARGV but then not using the magical properties of the <> operator? What exactly are you trying to do... maybe we can help you come up with a Perlish solution.


Replies are listed 'Best First'.
Re^2: shifting data to the beginning of an array
by drock (Beadle) on Jun 16, 2004 at 18:57 UTC
    Dave, this is test code so let me explain... all I want it to do is insert the eject 0,0,0 string one time after the 40 lines are printed on one line, like so: eject 0,0,0 434 343 343 4232 2424 thanks!

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2023-12-01 07:26 GMT
Find Nodes?
    Voting Booth?

    No recent polls found