Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: in place editing a list of files

by rjsaulakh (Beadle)
on Jan 08, 2007 at 18:05 UTC ( #593582=note: print w/replies, xml ) Need Help??

in reply to Re: in place editing a list of files
in thread in place editing a list of files

the script run into endless loop once we enter the while loop and no substitution is being done

Replies are listed 'Best First'.
Re^3: in place editing a list of files
by ysth (Canon) on Jan 09, 2007 at 04:27 UTC
    I can only suggest you run it under the debugger, examining all variables as you go and seeing where things go differently than you expect. Alternatively, rewrite to not use the empty <> operator and explicitly do every open, rename, print, and close, checking for errors after each one.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://593582]
[Corion]: Yeah, you need bool to get a true value, and the rest to return the other value ;)
[choroba]: perl -wE '{package o; use Tie::Scalar; use parent -norequire => "Tie::StdScalar" ;sub FETCH { "x" x int rand 2}} tie my $x, "o" ; say $x for 1 .. 10'
[choroba]: for complete ness

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-07-27 13:56 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (414 votes). Check out past polls.