Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Extract paragraph from multi line string

by Krambambuli (Deacon)
on Jan 26, 2010 at 17:45 UTC ( #819727=note: print w/ replies, xml ) Need Help??

in reply to Extract paragraph from multi line string

Rephrasing what ikegami said already:

the output of `unix_tool file_name` is probably _empty_.

What if you run this very command in the shell?
What if you use the full path to unix_tool inside the backticks, if unix_tool isn't in the current directory?

Maybe these questions can help you in tracking the problem down.

Update: what if you dump out $var after filling it, like

use Data::Dumper;
print Dumper( $var );

Altough this sounds improbable, maybe you just falled over some bug, maybe one that appears only within your environment: what Perl do you use, on what OS?


Comment on Re: Extract paragraph from multi line string

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2015-12-01 06:59 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 (795 votes), past polls