Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: word search in perl script

by Corion (Pope)
on Feb 08, 2020 at 07:26 UTC ( #11112607=note: print w/replies, xml ) Need Help??


in reply to word search in perl script

The first step is to look at the value of $SYNC in the error case.

Maybe it contains whitespace, or it contains additional information or other stuff. Maybe it is empty because the command didn't output anything?

You are doing a lot of awk-ing and grep-ping in your pipelines - Perl can do that too, and maybe you're throwing away important information, at least for debugging?

Replies are listed 'Best First'.
Re^2: word search in perl script
by cbtshare (Monk) on Feb 08, 2020 at 21:33 UTC
    I see no spaces in the $SYNC, and I made sure to chomp then do a search .

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2020-06-02 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (19 votes). Check out past polls.

    Notices?