meanroc has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I am new in the site.. And in the perl too..And I am having some problems..when I code:
#!/usr/bin/per use strict; use warnings; my $currDir = `pwd`; chomp $currDir; print "$currDir";
And rum right, but print /rootroot@kali: , and I want to print:
/root root@kali:
So I tried using:
#!/usr/bin/per use strict; use warnings; my $currDir = `pwd`; chomp $currDir; print "$currDir\n";
But does not worked..So watch I do??
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Noob question
by toolic (Bishop) on Jan 20, 2014 at 15:43 UTC | |
|
Re: Noob question
by marto (Cardinal) on Jan 20, 2014 at 15:48 UTC | |
|
Re: Output runs into prompt
by hippo (Archbishop) on Jan 20, 2014 at 16:16 UTC | |
|
Re: Noob question
by McA (Priest) on Jan 20, 2014 at 16:03 UTC | |
|
Re: Noob question
by McA (Priest) on Jan 20, 2014 at 15:35 UTC | |
|
Re: Noob question
by Anonymous Monk on Jan 20, 2014 at 16:06 UTC | |
|
Re: Noob question
by robby_dobby (Hermit) on Jan 21, 2014 at 04:20 UTC | |
|
Re: Noob question
by meanroc (Acolyte) on Jan 20, 2014 at 16:36 UTC | |
by kcott (Archbishop) on Jan 20, 2014 at 16:52 UTC | |
by Laurent_R (Canon) on Jan 20, 2014 at 18:37 UTC |