Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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'

Comment on Re: moving files
Select or Download Code
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]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2015-12-01 09:32 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (798 votes), past polls