Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: moving files

by tobyink (Abbot)
on Oct 16, 2012 at 07:19 UTC ( #999237=note: print w/replies, xml ) Need Help??

in reply to moving files

Is your system command inside the loop? (That is, before the closing }.) It should be.

Also you seem to inconsistently refer to $fil_nm and $filnm; these are different variable names, so if you mix them up randomly in your code, that will cause odd results.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^2: moving files
by Anonymous Monk on Oct 16, 2012 at 07:21 UTC
    by mistake i've typed $fil_nm in two ways my variable is $fil_nm only
Re^2: moving files
by Anonymous Monk on Oct 16, 2012 at 07:29 UTC
    no my system command is outside the loop and i want to move the $fil_nm files to reports directory only after completing the foreach loop outside that system command is present . i'm facing this problem help me over this

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999237]
[ambrus]: oh right. kilobits versus kilobytes. confusing.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-01-20 22:34 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (178 votes). Check out past polls.