Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Untaring with perl

by mrbbq (Acolyte)
on Aug 24, 2005 at 18:19 UTC ( #486321=note: print w/ replies, xml ) Need Help??


in reply to Re: Untaring with perl
in thread Untaring with perl

could anything.tgz be a variable?
$tar->read('$tar_file",1, { 'extract' => 1 });
I could not get it to work passing a variable...ideas?
thanks


Comment on Re^2: Untaring with perl
Re^3: Untaring with perl
by gryphon (Abbot) on Aug 24, 2005 at 20:00 UTC

    Greetings mrbbq,

    You have a single-quote just before $tar_file that doesn't match the double-quote at the end. You should either change the single to a double, or (and better) just drop the quotes.

    use strict; my $tar_file = 'anything.tgz'; $tar->read( $tar_file, 1, { 'extract' => 1 } );

    gryphon
    Whitepages.com Development Manager (DSMS)
    code('Perl') || die;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2014-12-29 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls