Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Extract paragraph from multi line string

by Krambambuli (Curate)
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?


Krambambuli
---
  • Comment on Re: Extract paragraph from multi line string

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://819727]
help
Chatterbox?
[karlgoethebier]: no typo
[marioroy]: At the Fransiscan monastery, got stuck up high in a tree from pruning and the chainsaw with large branch fell and broke the latter, but not me fortunately. Was stuck there for a while until a firetruck came by.
[Corion]: marioroy: So you live dangerously ...
[Lady_Aleena]: s/latter/ladder/; # ? marioroy
[karlgoethebier]: marioroy: Praise the Lord
[marioroy]: Well, that's why there must be angels around, invisible or not.
[marioroy]: Lady_Aleena yes, ladder.
[marioroy]: Corion, no not intentionally. not at all.
[Lady_Aleena]: /ne tries to decide whther or not to take a hammer to hubby's alarm clock.
[Lady_Aleena]: He never hears it.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2017-05-29 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?